Convert the Period_Name in GL_JE_Lines table to a date format and then come back year

I'm working on a data model BI Publisher and I try to convert the Period_Name in GL_JE_Lines table to a date format and then return of the year.

The sql below works in 11i, but I can't make it work in Fusion.

to_char (to_date (l. )) period_name , ' MON-RR ' ),'YYYY')

Any ideas?

Hi Jennifer,.

To_char (sysdate, 'DDMONYYYY') in BI Publisher does not return a correct results due NLS_DATE_FORMAT/DATE_LANGUAGE settings.

According to the standards of the I18N, NLS_DATE_LANGUAGE in the database is still hardcoded to NUMERIC_DATE_LANGUAGE. NUMERIC_DATE_LANGUAGE 'MY' in a date format mask is an integer, so you see the correct value.

You're not supposed to publish direct SQL with fixΘe format masks (unless it's some sort of canonical format used in internal processing, including the end-user will not be), you should return language digital date to the mid range and then make the formatting of y.

Workaround

Try adjusting the NLS_LANGUAGE in SQL data model to override formatting from of the

Data base and values of the Session, for ex: select to_char (sysdate, 'MON-DD-YYYY', 'NLS_DATE_LANGUAGE = AMERICAN') of double;

I got this Oracle support after lifting a SR.

Thank you

Rahul.

Tags: Business Intelligence

Similar Questions

  • How the identity if one table used only by synonyms and not by any other subprogrammes in a schema?

    Hi people

    How the identity if one table used only by synonyms and not by any other subprogrammes within a schema. I see in the TOAD describe objects tab used by, but I would like to identify hundreds of table so I would like to know if there would be any SQL or Meta Data Tables?

    How the identity if one table used only by synonyms and not by any other subprogrammes within a schema. I see in the TOAD describe objects tab used by, but I would like to identify hundreds of table so I would like to know if there would be any SQL or Meta Data Tables?

    The ALL_DEPENDENCIES view has hierarchical information based on object_id

    The view object has the object_type.

    Create a hierarchical query on the first view and attach it to the second view.

    Or you can use the utldtree.sql file in the installation of the DB admin folder. Comments initially show you how a hierarchical query based on the object type.

  • How to reduce the height of a table which is with PanelCollection and pc will find panelbox and pb is panelgridlayout and pgl is at the center of tableFirstTemplate?

    Mr President.

    How to reduce the height of a table which is with PanelCollection and pc will find panelbox and pb is panelgridlayout and pgl is at the center of tableFirstTemplate?

    Concerning

    Normally at the height of the table control you need property autoheightRows -1 and then set height in the table like this inlinestyle

    height: 300px;

  • I recently bought a new camera from Sony a7 - ii.  the first time I tried to import raw images taken with it (with a. Suffix ARW) the program says "Preview not available for this file" and then "files are not recognized by the raw format support in Lightr

    I recently bought a new camera from Sony a7 - ii.  the first time I tried to import raw images taken with it (with a. Suffix ARW) the program says "Preview not available for this file" and then "files are not recognized by the raw format support in Lightroom" I have the most updated version, I think as 5.7.  What should I do to get these files imported as raw files?

    Hi Bobsirkus,

    The camera you have is compatible with the latest version of Lightroom, which is Lightroom 6/CC.

    Please see the list of the camera supported by Lightroom: supported by Adobe Camera Raw devices

    You can use the DNG Converter, converts images and then import them into DNG in Lightroom.

    Kind regards

    Tanuj

  • Find the date max and then perform a calculation.

    Hello

    I have two tables. CC Cla_case and this Cla_event. The join between the two tables is on cc.cla_event_no = ce.cla_event_no.
    In cla_case, I have the following columns: Discover_date and Notification_date. Cla_event I have the Incident_date column.

    I need to perform a subquery that is the last (most recent) date, what cc comparison. Discover_date and this. Incident_date. Once he did that I then have to subtract this recording of cc. Notification_date to find out how many DAYS was held until the incident has been reported.

    My date format is as follows: 16 April 2008 07.50
    Once more, I need only DAYS between Notification and last date between Discover and Incident.

    Thank you very much!

    Banner:
    Oracle Database 11 g Release 11.2.0.2.0 - 64 bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production."
    AMT for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    Hello

    It is always useful to post some build instructions in the table and a small set of data to work with an example of your desired output. In this case, as I understand it, I don't think that you need a subquery - instead, you just use the LARGEST function...

    WITH cla_case AS
    (     SELECT 1 event_no, to_date('01/10/2011','dd/mm/yyyy') discover_date, to_date('02/10/2011','dd/mm/yyyy') notification_date from dual union all
         SELECT 2 event_no, to_date('02/10/2011','dd/mm/yyyy') discover_date, to_date('03/10/2011','dd/mm/yyyy') notification_date from dual union all
         SELECT 3 event_no, to_date('03/10/2011','dd/mm/yyyy') discover_date, to_date('04/10/2011','dd/mm/yyyy') notification_date from dual
    ),
    cla_event AS
    (     SELECT 1 event_no, to_date('02/10/2011','dd/mm/yyyy') incident_date from dual union all
         SELECT 2 event_no, to_date('02/10/2011','dd/mm/yyyy') incident_date from dual union all
         SELECT 3 event_no, to_date('03/10/2011','dd/mm/yyyy') incident_date from dual
    )
    SELECT
        cc.event_no,
        cc.discover_date,
        cc.notification_date,
        ce.incident_date,
         cc.notification_date - GREATEST(cc.discover_date,ce.incident_date)
    FROM
         cla_case cc,
         cla_event ce
    WHERE
         cc.event_no = ce.event_no
    /
      EVENT_NO DISCOVER_DATE        NOTIFICATION_DATE    INCIDENT_DATE              DIFF
    ---------- -------------------- -------------------- -------------------- ----------
             1 01-OCT-2011 00:00:00 02-OCT-2011 00:00:00 02-OCT-2011 00:00:00          0
             2 02-OCT-2011 00:00:00 03-OCT-2011 00:00:00 02-OCT-2011 00:00:00          1
             3 03-OCT-2011 00:00:00 04-OCT-2011 00:00:00 03-OCT-2011 00:00:00          1
    
    3 rows selected.
    
    Elapsed: 00:00:00.03
    

    HTH

    David

  • Got a 27 "monitor from Apple, with thunderbolt (error). My MacPro can't love at first sight. Apple won't bring back the monitor. Will using a USB 3 map and then using a hard drive with USB 3 and Thunderbolt works?

    Got a 27 "monitor from Apple, with thunderbolt (error). My MacPro can't love at first sight. Apple won't bring back the monitor. Will using a USB 3 map and then using a hard drive with USB 3 and Thunderbolt works?

    N ° you need a computer logic board which has built in Thunderbolt.

  • It might make me totally distracted, but in the password protocol, it seems all sites want one and then somehow I've now changed my passwords?

    Hello

    It might make me totally distracted, but in the password protocol, it seems all sites want one and then somehow I've now changed my passwords? IE: Google, Microsoft...

    Some people say that I need only a pswd for all sites?

    Some say all change every month... you, the experts say?

    Thank you

    Hello

    One of the worst things you can do with passwords is to have the same password for everything. For example, someone like a hacker finds your password by e-mail. You can use the e-mail address as username for several things, such as the online stores, financial sites, etc.. Once they know this address combination and e-mail password works on a single site, hackers can try on many popular sites. You are then not only your email hacked, but a lot of things.

    There are more tips here:

    http://www.microsoft.com/en-GB/security/online-privacy/passwords-create.aspx .

  • Internet diagnosis Uverse runs whenever online for the 3 first sites until I run their diagnosis, and then traverse the requested Web site. The diagnosis can never find anything.

    original title: At & t uverse internet
    Use internet AT & T Uverse, their diagnosis happens every time I go online for the first 3 sites until I run their diagnosis, and then traverse the requested Web site.  The diagnosis can never find anything.  Works great after that.  Is something my tracking sites and interrupt my process?

    Hi Chelsea,

    ·              When you get the run diagnostics?

    ·              Do you get this message in the browser or is it a popup on the computer?

    It would probably be best for you to contact uverse support to see why this is happening.

  • Hi, my videographer of windows program opens only once. It is impossible to reopen it unless I restart the pc. And then he does that only once and then comes the same problem. Thank you

    Hi, my videographer of windows program opens only once. It is impossible to reopen it unless I restart the pc. And then he does that only once and then comes the same problem. Thanks in advance

    Just a thought...

    It may be interesting to try to open Movie Maker and go to...
    Tools / Options / compatibility... tab and left click of the
    "Restore all defaults" button / OK.

  • whenever I try to log in using the msn butterfly, I get a msn stopped working, and then it closes

    Whenever I try to log on to the msn butterfly, I get a msn stopped working, and then it closes. I can go through yahoo and log but I am unable to access my favorites, have been logging on the butterfly for years and now this has happened, any help?

    Hello UBEL STELLACOUSIN,.

    This thread has been created in the Windows Vista forum install, level and activation; the Microsoft moderation team has moved this thread in forum Windows Vista Networking, Mail, and online.

  • Since then, when I start the computer, it goes through a few stages starting and then ends with a black screen with a cursor flashing at the top.

    I left by mistake a USB in the port when I restarted my computer (Windows 7).

    Since then, when I start the computer, it goes through a few stages starting and then ends with a black screen with a cursor flashing at the top.

    If I press ESC during startup and access the start menu, something marked WED... is highlighted and I press on enter and it starts normally.

    How can I get Windows 7 to do a normal boot without having to access the Boot Menu each time?

    Thank you.

    Tried that, but it did not work.  Finally got and IT guy come and it took him 3 1/2 hours to repair.

    Need a bootable floppy which has then repairs itself.

    Lesson learned.  Have an available for each computer startup disk.

  • While trying to look for something on my computer, it gives a blank screen and then start back on the desktop

    I use a laptop HP H250 running Windows 8.0. Since yesterday whenever I search something on the machine it gives a blank screen and then start back on the desktop. An analysis of the system and the registry has verified. Can anyone help?

    Hi Courtney,

    This issue may have caused due to some missing or corrupted files in the computer. I would like to know some information about this problem so that we can help you further.

    1. have you made changes on the computer before this problem?

    2. do you get any error code or error message while starting?

    3. are you referring to the Virus scan by "system scan"?

    I would suggest trying the following methods and check if it works for you.

    Method 1:

    Run the troubleshooter of System Maintenance and check if it helps. This troubleshooting will help you find and fix common system issues on your computer.

    Follow the steps to run the Troubleshooter:

    (a) press Windows + Q together get the search option.
    (b) the type of Troubleshooting on the search option, and then select Troubleshooting.
    (c) click show all on the left side panel.
    (d) click on The Maintenance of the system and follow the instructions to run the troubleshooter.

    Method 2:

    Put the computer in a clean boot state, and check if the problem persists. This process will help you determine which third party/PPP program is causing this problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7 or Windows 8 / 8.1:
    http://support.Microsoft.com/kb/929135 
    Note: After the boot minimum troubleshooting step, see the "How to reset the computer to start as usual after a clean boot troubleshooting" section in the link provided to return the computer to a Normal startup mode.

    Please reply with the status of the issue so that we can better help you.

  • the "print.ai" file is in an unknown format and cannot be opened

    I've posted before, but I really need a solution.

    Out of the blue, Illustrator began to behave badly. I use creative suite 5.5 with Windows 7.

    When I try to create a new file, I get the message "the file 'print.ai' is in an unknown format and cannot be opened." I accept the message and continue. After seeing the message pop up even once, I finally get to a new message "unable to create a new Illustration. The order was cancelled. »

    I can open Illustrator files created previously.

    I'm willing to pay for a solution!

    After some trial and error, I finally got Illustrator works correctly.

    I deleted the preferences file before you uninstall Illustrator. When the program is reinstalled this time, it worked.

    So relieved.

  • When I edit a photo in "develop" and then click back to the library to export the only changes to the photo that carry over is the cropping. I can't export my edited photo. Anyone have this problem? I have the creative cloud package

    When I edit a photo in "develop" and then click back to the library to export the only changes to the photo that carry over is the cropping. I can't export my edited photo. Anyone have this problem? I have the creative cloud package

    Hi stever25146025,

    According to the request, I understand that when you export images from Lightroom it shows only the crops, is not editing.

    It is specific to a single image or all images in the catalog?

    Could you please let me know what file format you choose to export the images and also what version of Lightroom are you using?

    Kind regards

    Tanuj

  • I start the download for my CS5 and it comes back with an error that it can not install updates. and try later. I've tried about 6 times

    I start the download for cs5 and it comes back with an error that it can not install updates. and try later. I've tried about 6 times

    Hello Tracy,.

    How exactly you are trying to download and install updates?

    Is it a mac or windows?

    Manually download CS5 CS5 download products

    Download the updates manually CS5 for Windows here: https://www.adobe.com/support/downloads/product.jsp?product=39&platform=Windows

    Download the updates manually CS5 for Mac here: https://www.adobe.com/support/downloads/product.jsp?product=39&platform=Macintosh

    Concerning

    Jitendra

Maybe you are looking for