Conversion of date in obiee11g

Hello

Date column with data like this 01/01/2012 and the data type is DATE TIME.but at levels I want to convert like this January 1, 2012.

Hi you can try this and let me know the update.

Evaluate ('TO_CHAR(%1,%2)' AS the CHARACTER (30), EVALUATE ('TO_DATE(%1,%2)' AS DATE of EVALUATE ('TO_CHAR(%1,%2)' AS the CHARACTER (30), 'time'.))) ((("' Date ', ' MM/DD/YYYY'), ' MM/DD/YYYY')," DD/MONTH/YYYY")

Thank you
NK

Published by: DNK on March 1, 2013 07:55

Tags: Business Intelligence

Similar Questions

  • Digital conversion of Date in SQl Server 2000

    People,

    IAM facing a problem in sql server 2000. I couldn't convert the numeric value to the date format to help CONVERT and MOUNT the keyword in sql server 2000. I tried with example mentioned below.

    declare @a NUMERIC (10)
    the value @ a = 20110101
    SELECT CAST (@a as datetime) suite

    But I get an error like "overflow arithmetic error conversion expression to data type datetime '

    So, can someone please help me... ?

    Please repost your question in the instances of SQL Server dedicated from Microsoft here:

    http://social.technet.microsoft.com/Forums/en-us/category/sqlserver .

    Thank you.

  • Concerning the Conversion to date in OBIEE

    Hello

    I'm pulling a column date of as / 400 source where I have two questions:

    1. the date is displayed 19761027.0 (1976 is year-round, is 10 months and 27 is the date). The data type is integer. I need to convert this to this day and in the following mm/dd/yyyy format
    2. I added 26 for the year, so that it shows of the year 2012.

    How can I achieve this in the RPD? Should what conversion function I choose?

    Vikram

    You have to say/score sound/as correct instead of useful ;)

  • Conversion of date of hire as julienne

    Hi gurus,

    Need help for Conversion of hiredate from the emp table to Julian date...

    TO_DATE ('HIREDATE', 'YDDD')

    Thank you

    Hello

    SeenuGuddu wrote:
    Hi gurus,

    Need help for Conversion of hiredate from the emp table to Julian date...

    TO_DATE ('HIREDATE', 'YDDD')

    Thank you

    If you have a called hiredate DATE column, then you can use TO_CHAR to display it in the desired format, like this:

    TO_CHAR (hiredate, 'YDDD')
    

    Note that there is no first argument in quotation marks.

    Use TO_DATE if you start with a string and you want to produce a DATE. For example:

    TO_DATE ('9320', 'YDDD')
    

    or, if you have a column called hiredate_text:

    TO_DATE (hiredate_text, 'YDDD')
    

    Yet once, the first argument is not specified, because it is a column name, not the literal value.

    The Julian Date is (currently) a 7-digit number. If you use another system of coding for dates, it will only cause confusion if you call it "Julian".
    There are already enough confusion between "Julian Date" and "Julian calendar" (which Oracle uses for dates up to 1582).

  • Conversion from data type "float".

    In a wireless data logger I collect analog data with a 8-bit microcontroller and sending it as a UDP datagram. The data received in the LV application looks like this:

    \r\n020.43\s002.14\s000.00\s000.02\s ("------" "" display codes)

    0D0A 3032 302F 3433 2030 3032 2E31 3420 3030 3030 2030 3030 2E30 3220 (display Hex) 302F

    020.43 002.14 000.02 000.00 (normal display)

    I want to undress and show values 20.43, 2.14,0.0 and 0.02 in my application of LV.  Try with "Scan of the String" and "Decimal number to the string" but without much success. Maybe I can 'building' my data of the hexagon?

    Any idea is welcome. Thank you.

    Channel scan works very well for me.

  • conversion of data in series for the indicator

    I have a simple VI that I use to read data from a serial device streams.

    The data are in a three-byte code, where the first byte is an 'o' and the 2nd byte

    data and the third byte is one don't care end character.

    What I want to do is to input the value of byte 2 and use that value to set an indicator of ringtone.

    Two problems I'm having is the data looks sometimes like garbage and I'm not able

    to convert this number as Double ring indicator (button) accepts...

    Here's what I see:

    Change the button to be a U8.  Which would be more logical, since you only use a single byte.  Take your string and use the string into byte array.  You now have a table of U8.  Array index allows to get the second byte and connect it to your button.

    I would also change the channel indicator display style to be hexadecimal values.  The data will make more sense.

  • Conversion of data in a table by using a For loop

    I'm trying to transpose data in a table using a loop from the size of the array, and then decrease until 0. Can someone help please if you have an example?

    This looks like a school exercise.

    Determine how to calculate the index in the input array and how to calculate the index in the output array. Use the Index and tunnel exit autoindxing table or Index table, and then replace the subset of the table.

    Lynn

  • Conversion from date to Date

    Hello

    SELECT to_date('20-FEB-2015','DD-MON-YYYY')-to_date(DATE_INFO_UPDATED,'DD-MON-YYYY')

    FROM BO_MASTER where BO_CODE = 264288;

    I'm converting Date_info_Updated to JJ-ME-YYYY format whereas it is already the date data type.

    Value of Date_info_Updated: = 20 February 2015 '

    Thus, the expected output should be 0.

    But I am getting output = 730487.

    Can you explain why?

    Thanks in advance,

    Flavian.

    For more information check under request

    Select * parameter of $ v where name like '% nls_date_format % ';

    Default Date format is DD-MON-RR. So when you apply to_date on date column it will be converts first date to a char that will be February 20, 15 and then when you convert to date once again it will be February 20, 15.

    Don't use new to_date on date columns. If you are worried about the time TRUNC function use.

    Concerning

    Arun

  • conversion of date to the chariot returns 9999 as year

    Hello

    My version of SQL Developer is

    Oracle IDE3.2.20.09.87

    I have a table T that has a collar of the column Date

    I'm on fire:

    select col from T;
    

    I get the value returned as: 31 December 99

    When I'm on fire:

    select to_char(col,'YYYY/DD/MM') from T;
    

    I get the value returned in the: 31/12/9999

    However, when I have the fire:

    select to_char(to_date('31-DEC-99','DD-MON-YY'),'YYYY/DD/MM') from dual;
    

    I get the value returned in the: 12/31/2099

    What could be the cause of two different values returned when selecting DOUBLE and T?

    ORA - aff wrote:

    Thanks yoyo, what I get is:

    Typ = Len 12 = 7: 199,199,12,31,1,1,1

    I would expect Typ = 13 for a column.

    CREATE TABLE test_dump (d DATE);

    INSERT INTO test_dump VALUES (DATE ' 9999-12-31');

    INSERT INTO test_dump VALUES (DATE ' 1999-12-31');

    INSERT INTO test_dump VALUES (DATE ' 2099-12-31');

    SELECT d, DUMP (d) test_dump;

    D DUMP (D)

    ---------- ---------------------------------

    31.12.9999 Typ = Len 12 = 7: 199,199,12,31,1,1,1

    31.12.1999 Typ = Len 12 = 7: 119,199,12,31,1,1,1

    31.12.2099 Typ = Len 12 = 7: 120,199,12,31,1,1,1

    If your date is really the year 9999

  • conversion of dates of exercise

    Hello

    I have a table with a column that stores dates and other information, I want to write a query to convert dates in exercise. (June year last July next year).

    [code]

    Ex: 2011 (jul2011-jun-2012)

    2012 (Jul-2012-jun-2013)

    [/ code]

    Thank you

    Here's a hint to get you started:

    select case when extract (month from sysdate) < 7 then
      extract (year from sysdate) else extract (year from sysdate) + 1 end fiscal_year
    from dual
    
    FISCAL_YEAR
    2014
    
  • birthMonth-String to the Date of Conversion - get data from this month

    Hello

    We would like that the EEG records results for birthmonth this month table. If this month is May (05) then I need to get records of Birthmonth for the month may of table.

    {Code}

    Create table birthmonth (birthmonth Varchar2 (10), Numeroclient number);

    INSERT INTO BIRTHMONTH ('1', 100);

    INSERT INTO BIRTHMONTH ('2', 101);
    INSERT INTO BIRTHMONTH ('3', 102);
    INSERT INTO BIRTHMONTH ('41', 103);
    INSERT INTO BIRTHMONTH ('5', 104);
    INSERT INTO BIRTHMONTH ('10', 105);

    INSERT INTO BIRTHMONTH ('11', 106);

    {code}

    Hello

    user1758353 wrote:
    Hello

    We would like that the EEG records results for birthmonth this month table. If this month is May (05) then I need to get records of Birthmonth for the month may of table.

    Here's one way:

    SELECT  *
    FROM     birthmonth
    WHERE     birthmonth     = TO_CHAR ( SYSDATE
                            , 'fmMM'
                          )
    ;
    

    SYSDATE returns the date of the day.
    To_char (SYSDATE, 'MM') returns the current month (a string 2, with a '0' for most of the month).
    To_char (SYSDATE, "FMMM") returns the current month (a string 1 or 2, without a '0').

    {Code}

    Create table birthmonth (birthmonth Varchar2 (10), Numeroclient number);

    INSERT INTO BIRTHMONTH ('1', 100);

    INSERT INTO BIRTHMONTH ('2', 101);
    INSERT INTO BIRTHMONTH ('3', 102);
    INSERT INTO BIRTHMONTH ('41', 103);
    INSERT INTO BIRTHMONTH ('5', 104);
    INSERT INTO BIRTHMONTH ('10', 105);

    INSERT INTO BIRTHMONTH ('11', 106);

    {code}

    Thanks for posting that, but no instructions INSERT works; they need the keyword VALUES.
    Always test (and, if necessary, correct) CREATE TABLE and INSERT statements before committing.

    Is it really wise to save only the month? Most often, people store all birth_date in a DATE column. It is easy to use EXTRACT or TO_CHAR to get the month of a DATE.
    Because you really want to use a column of VARCHAR type, making 10 characters long guest just wrong. Why not make 2 characters? In addition, add a CHECK constraint to make sure invalid month, such as '41' above, does.

  • conversion of data format

    Hello

    current data format
    COL1    COL2
    1,2       A
    3,4       B
    5          C
    required data format
    COL1    COL1
    
    1          A
    2          A
    3          B
    4          B
    5          C
    Thank you

    Try this

     SQL> with t
      2  as
      3  (
      4  select '1,2' col1, 'A' col2 from dual union all
      5  select '3,4' col1, 'B' col2 from dual union all
      6  select '5' col1, 'C' col2 from dual
      7  )
      8  select regexp_substr(col1, '[^,]+', 1, level) col1, col2
      9    from t
     10  connect by level <= length(col1) - length(replace(col1, ',')) + 1
     11     and col1 = prior col1
     12     and prior sys_guid() is not null
     13  /
    
    COL C
    --- -
    1   A
    2   A
    3   B
    4   B
    5   C
    
    SQL> 
    
  • Conversion of date and insert

    Hello
    We have a small script that we need help please.

    We treat the txt files in a plsql code, the name of the file is usually in the format "SDE_NN_YYYYMMDDHHMI.txt".

    The NN is a 2 digit number
    The YYYYMMDD is the date of the file
    HHDI is the component of hour and minutes.

    While we treat the data found in the txt file, we must update the underlying table with the date in the name of the file.

    We use the current code to do:
    FILE_DATE := to_date(substr('SDE_20_201205071235.txt',instr('SDE_20_201205071235.txt','_',1,2)+1,8), 'yyyymmdd');
    The code works well, and it does not extract the date component out of the string of file name without any problems. The issue that we have is that even if the date is to be extracte with success, once inserted, then ask the changes are committed, if we come back and do a simple select on the field of file_date, we get the current sysdate instead of the actual date of inserted (based on the name of the file)?

    We even tried the following syntax for the insertion of the value date:
    insert into contributions values
    (con_seq_num, SDE_TYPE_ID, SDE_ID, oDEPOSIT_DATE, SDE_AMOUNT, AGGREGATE_AMOUNT, SDE_YEAR, NAME, sysdate, SDE_NAME, FILE_NAME, to_date(substr(u_in_fname,instr(u_in_fname,'_',1,2)+1,8), 'yyyymmdd'), null, null, 'sde_ADMIN',  null); 
    But once more, the insert is committed successfully, and when we run the select, we get the current sysdate instead of the desired date (which in this case should be may 7, 2012 (20120507)).

    Any ideas please?

    Version Oracle 11.2.0.1
    O.s Windows 2008 server.


    Thank you

    There may be a trigger on the table that is inserting SYSDATE.

  • calculate the month to date in Obiee11g

    Hello
    I use OBIEE11g, im a problem-

    Problem: results of the beginning of this month beginning of previous month results vs.
    example: If Im in 12 February the calculation is * February 1 to February 12 * also * January 1 to January 12 *.

    -Zia

    Can you give your month there is calculation please?

    It is similar to the AGO (SH. Salesfacts. "" Quantity ", SH. TimesDim. ("" Month ", 1).

  • Date of issue - conversion to date and the date of conversion in months

    I have some data in a text file for SQLLDR from a SQL SERVER.

    In date columns are YYYY-MM-DD format eg-2011-01-03 00:00:00

    but in oracle, we use DD-MM-RRRR.

    Don't know why the SD and MM are get interchanged. Help, please.

    It's my for sqlldr control file:
    LOAD DATA 
    INFILE 'F:\NV\Permits\SQLLDR\permits.txt'
    REPLACE 
    INTO TABLE lot.p_permit
    FIELDS Terminated by "~" TRAILING NULLCOLS
    (
     CP_PermitID  "TRIM (:CP_PermitID)",
     CP_SubmitDate "to_date(to_date(substr(:CP_SubmitDate, 1,19),'RRRR-MM-DD HH24:MI:SS'),'DD-MM-RRRR')",
     CP_IssueDate "to_date(to_date(substr(:CP_IssueDate, 1,19),'RRRR-MM-DD HH24:MI:SS'),'DD-MM-RRRR')")

    You convert date to date. First TO_DATE

    TO_DATE (substr (: CP_IssueDate, 1.19), "DD-MM-RRRR HH24:MI:SS")

    Converts correctly 19 characters of the CP_IssueDate string to date. Now, look at what is happening with the other. To_date first argument is string. Since to_date (substr (: CP_IssueDate, 1.19), "DD-MM-RRRR HH24:MI:SS") are dates:

    TO_DATE (to_date (substr (: CP_SubmitDate, 1.19), 'DD-MM-RRRR HH24:MI:SS'), "DD-MM-RRRR")

    implicitly converts the to_date (substr (: CP_IssueDate, 1.19), "DD-MM-RRRR HH24:MI:SS") to a string using default date format, then converts it back to the date using the format "DD-MM-RRRR. Of course if the default date format is not "DD-MM-RRRR" you can either get an incorrect date or a mistake. In any case, use:

    LOAD DATA
    INFILE 'F:\NV\Permits\SQLLDR\permits.txt'
    REPLACE
    INTO TABLE lot.p_permit
    FIELDS Terminated by "~" TRAILING NULLCOLS
    (
     CP_PermitID  "TRIM (:CP_PermitID)",
     CP_SubmitDate "to_date(substr(:CP_SubmitDate,1,10),'YYYY-MM-DD')",
     CP_IssueDate "to_date(substr(:CP_IssueDate,1,10),'YYYY-MM-DD')"
    )
    

    SY.

    Published by: Solomon Yakobson August 1, 2011 16:45

Maybe you are looking for