decode the problem with dates in APEX

In oracle, I can run this

Select decode (CBT_DT, to_date (January 1, 2100 ',' DD/MM/YYYY '), null, CBT_DT) CBT_DT
of DMN_USER_LIST_PORTAL

and it works.

but in the APEX, he wants to remove date column and make it a character.
Help, please
Thank you
Doug

Perhaps rewrite with a CASE statement can help? Or a cast of the explicit NULL value to a date.

select case
        when cbt_dt = to_date('01/01/2100', 'MM/DD/YYYY') then to_date(NULL)
        else  cbt_dt
        end
from DMN_USER_LIST_PORTAL 

Tags: Database

Similar Questions

  • What is the problem with kernel_task?

    Hello everyone,

    What is the problem with kernel_task?

    I explan: Macbook Pro early 2011 LION OS up to date.

    I bought 8 GB on China supplier, CRUCIAL...

    Well, I got a lot of kernel Panic. Usually, he is involved material, taken on my RAM, back is the original, so still have in the kernel_task to 300% CPU monitoring followed up to 500%...

    Well, I went back to a clean install, a manufacturing one, with nothing.

    Wish I 'd' diagnosis of the equipment, never went on, test it on safe mode, disable all extensions, then nothing:

    Sometimes the kernel_task crazy sometimes not...

    Good read a lot on the internet but nothing has worked... I went to the Apple store in DIJON, they do not have diag any hardware problem, and all my App are approved Apple.

    Used to play the eve online thought, therefore, the graphic chipset pourrait was damaged, so when it's too 'hot' the mac gets crazy... but I expected crazy restarts and that sort of thing.

    I bought a manual, there is no french support to the opening of Apple, but found nothing about my question.

    So what?

    I bought something conivient on Support and friability so today he's dead?

    What should do?

    If you still get the panic of the core, thanks to post separate 2 or 3 of the most recent as answers on this.

    Reports of kernel panic: "/ Library/Logs/DiagnosticReports".

    http://support.Apple.com/kb/ht2546>

    http://support.Apple.com/en-us/HT200553>

    The panic report should have "panic" in the name of the file.

    Kernel panics tend to come from 2 sources

    • Material:
      • 3rd party RAM is the most common.  Replace or return the original is usually the solution.  Crucial and MacSales.com were 2 of the most reliable sellers for the initial quality and guest without question of replacement.
      • Broken USB cables or USB devices have turned up as the 2nd most likely material number.  Usually remove all USB devices, or replace the keyboard and USB mouse to see if it's one of those existing.
      • There are a few Macs with graphics chips that have failed.  I don't know that they exist, but do not know what model Mac had these chips.
    • Software
      • antivirus protection.  It is the number 1 most panicked related software cause.  More OS X does not need antivirus, because it has its own built-in protections http://www.thesafemac.com/mmg-builtin/>.
      • Other core 3rd party extensions are a distant 2nd.
      • NOTE: not all 3rd party kernel extensions are causing problems, but when there is a kernel panic, it's the first thing to look at.

    If run kernel_task is often caused by core 3rd party extensions.  It can be caused by an application program, but then the Applications-> Utilities-> Activity Monitor show "As" an application that consumes a lot of CPU, disk IO and network IO in collaboration with the kernel_task using lots of CPU.  If there is no application burns the CPU at the same time, so it is almost always a 3rd special part of the kernel that was originally the use excessive CPU kernel_task.

    Start in safe mode is usually a test to see if 3rd party extensions are part of the case.  But in safe mode is not how you run your system, because it also loads less advanced graphics drivers and other components.  Safe mode is very conservative, but it's a great way to see if the 3rd party software is at fault and have started when 3rd party software panic the system at boot.

    The contributors to the forum long strongly warn against getting 3rd party anti-virus, cleaners Mac and additions increasing.  This class of 3rd party additions have shown time and time again to really harm performance, remove things they shouldn't and cause a kernel panic.  Especially right after an OS X update to a new version.

  • What is the problem with Safari?

    Since the last update of El Capitan, Safari has become almost worthless.  I can't use it. It will give me the beach whirling death ball. I can not click through links. the full page is not displayed.

    What the * is the problem with that?  It's the kind of shit that I would wait in a Microsoft product. I had started using Chrome.

    What the * wrong with Safari and when you're going to fix?

    Try to reset the settings of Safari:

    1. open Safari

    2. click on the Safari menu at the top (to the right of the Apple logo)

    3. Select the Preferences/Privacy tab

    4. click on remove all data from the Web site

    5. close Safari.

    Remove cache Safari files:

    1. click on finder

    2. look for the menu GO to top

    3. click on GO and hold down the option key. This will show a user library folder.

    4. click library and find the Caches folder

    5. in the folder caches com.apple.Safari Ouvrezledossier

    6. move the Cache.db file Trash.

    This should solve the problem. If it does not help, try to disable the Safari extensions

    1. open Safari

    2. click on the Safari menu at the top (to the right of the Apple logo)

    3. Select Preferences

    4. find the Extensions tab

    5 disable all extensions of

    6. relaunch Safari

  • The problem with Windows update - automatic updates service won't start not (error 126)

    original title: the problem with Windows update

    Please help me to get Windows Update operational return.

    XP Media Center Edition, Version 2002, SP3

    Had a problem with "Generic host process for Win32 has encountered a problem and needs to close."  Follow-up of the instructions on this link:
    http://support.Microsoft.com/kb/931852

    Seems to have cleared the error message.  So far so good.

    However, now a Windows Update does not work.  Security Center Windows were told to go to control panel > system and use the Automatic Updates tab.  But, if I go to control panel > system, the Automatic Updates tab does not appear.

    I also went to the control panel > Services.  Tried to start the automatic updates service.  Received this error message: could not start the service automatic updates on Local computer.  Error 126: The specified module could not be found

    I already followed several instructions on this subject:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-windows_update/cannot-access-Windows-automatic-update-after/aeaec175-01f4-47ed-8F97-55b854af4220

    In the thread above, I was following the post on 30 August.  According to Option A, I completed step 5 for the uninstallation of McAfee Security.  At this time, my network card has stopped working.  On the recommendation of the officer, I posted to the Malwarebytes forum.  The officer determined Malwarebytes that I don't have a malicious software.  I ended up posting on forum McAfee to get my network card works again.  Then I reinstalled McAfee and start to run Windows Update.

    I started with Option A, step 8 to reset Internet Explorer using http://support.microsoft.com/kb/923737.  The difficulty it has worked very well.

    Then Option A, step 9 says reset Windows Update using http://support.microsoft.com/kb/971058.  When I ran the difficulty in default or aggressive mode, I got an error message saying: he cannot start wuauserv.  The message asks me to verify that the user has privileges to take this step.  Well, I checked through user accounts who am the only one user set up on this PC and I have administrator privileges.  Help me please run this difficulty or recommend another way to get Windows Update works again.

    [1]... looks like you are saying that my system is so wet that a clean install is the (only?) way to go.

    [2] if I do a clean install, not only what I need to reinstall Windows and all my applications, I also have to reinstall the drivers... Etc. ?

    [3] I think I have the disks supplied with the PC system. Is it better to use than to use the recovery partitiion?

    [4A]... is there a possibility that some of [my data are] infected?

    [4] preventing me from simply infect the whole PC again?

    A1. Yes, and it was my recommendation in August, too.

    A2. Yes.

    A3. Only not really well using the restore Partition hidden to make the "destructive recovery" will include all drivers, etc., that have been installed at the factory.

    A4a. Yes, a real possibility.

    A4b. You run at least three 3 tests on the backup data before restoring one (1) with your installed & updated up-to-date anti-virus application (for example, Microsoft Security Essentials) and two 2 with good reputation, free online scans (e.g., ESET;) Bit Defender; Kaspersky; HouseCall; (F - Secure).

    If you have saved your data on CD/DVD, the disc scanner. If you have backed up your data to a flash drive, SD card, or another external drive AND KB971029 is installed, analyze the drive.

    If you have any questions or need additional help, please start a new thread in this forum: http://answers.microsoft.com/en-us/windows/forum/windows_xp-system

    Once again, good luck!

  • Always the problem with e-mail after trying to repair it with uninstall

    When I try to delete e-mails, it is said: msg store was damaged by an external application to windows mail. Windows mail at recovered. error 0 x 0000000.

    I delete the emails and they do not appear in my file delete so I can remove them permanently. When I opened my email each day the same messages deleted come thru with exactly the same day as before and as a new email. I have the border in Arizona as my provider. I followed the instructions of a similar problem, I was alerted by going to programs, uninstall, repair, but no luck, same thing back on email. I get emails with the date of the day on them, so I'm able to send and receive. Exactly what remove file showing nothing as deleted, and when I click on an e-mail I deleted it says that it does not. I use the computer for email and internet, that's all. My computer is a windows vista Basic. Thanks for any further help.

    Hello

    You use Norton or McAfee av?  I suggest to uninstall these and select free software such as Microsoft Security Essentials, Avast or AVG.  These work properly with Windows Mail.

    How to fix most of the problems with Windows Mail

    http://www.Vistax64.com/tutorials/62560-Windows-Mail-problems.html

    Alternatively, you can consider the use of the Windows Live Essentials Mail instead of Windows Mail application.

  • Problems with date calculation

    I have a java (and much more far vb) background and it seems that I'm really dependent functions for date calculations.  I'm trying to do a few things, but have not been able to accomplish them.

    I do not have

    Calendar.add()
    

    I briefly contemplated an add function by converting into long then do the calculation and returns a new calendar object, but the problems with this approach comes flourishes as soon as I started.  Just trying to find out if a date was yesterday was me banging my head against the wall.

    Any help please?

    I wrote this, but I don't know if there is a simpler method, go to this issue the wrong way, etc.

    public static boolean isYesterday(Calendar c) {
        Calendar today = Calendar.getInstance();
        int newDay = today.get(Calendar.DAY_OF_MONTH);
        if (newDay == 1) { //get last day of previous month
            int newMonth = today.get(Calendar.MONTH);
            int newYear = today.get(Calendar.YEAR);
            /* If jan 1, get dec of last year */
            if (newMonth == 0) { //Java Calendar.MONTH is zero-based
                newMonth = 11;
                newYear -= 1;
            today.set(Calendar.YEAR, newYear);
            }
            today.set(Calendar.MONTH, newMonth);
            newDay = DateTimeUtilities.getNumberOfDaysInMonth(newMonth, newYear);
        } else {
            newDay -= 1;
        }
        today.set(Calendar.DAY_OF_MONTH, newDay);
        return DateTimeUtilities.isSameDate(today.getTime().getTime(), c.getTime().getTime());
    }
    

    'convert to tz to the device.

    I recommend that stick you with using UTC for everything.  If you want to display to the user, then a DateField will convert the hour UTC to local time.  SImpleDateFormat.formatLocal will also print you long time UTC to local time.  So I recommend that you do not have to convert once at the local level.

    Remember that System.currentTimeMillis () is time not UTC/GMT.

    Of course, that's a good advice or not depends on your app.

    I'm not aware of any third-party code that helps, I reinvented wheels square to all my treatment to date.  But I never really looked at.

    About your code, assuming that c calendar uses the local time zone, so I think that the code works.

  • The OID of the Migration of OUD, hitting the problem with the attribute pwdhistory OUD

    The OID of the Migration of OUD, hitting the problem with the attribute pwdhistory OUD

    I use sync DIP at the end of migration of data from OID for target OUD. Everything seems great so far, I have found that pwdhistory being migrated is not being validated by OUD password policy

    I do import ldif for OUD and find this pwdhistory field is populated with the same OID value. When I reset password in OUD-DOHAD with the word in the history of password,.

    Expected Behavior: Error Message from the OUD "" LDAP: error code 20 - already the value of specified password exists in the user input " "

    Course Behavior: OUD is what allows to reset the password in the password history

    Also found that when I try again with the same password, then it throws the error 20 code. OUD replaces the old values in pwdhistory after the password resets and written new values with stamp of password.

    It is a Blocker for us for migration in the history of password, I would like to join the forum and check if someone had the same problem and how they managed it?

    Thank you

    Satya

    Support of Oracle confirmed that DIO history for the OUD password migration is not supported. The OID and OUD records and validates the pwdhistory differently

  • What is the problem with my Oracle reports parameter?

    Hello

    We use a PL SQL package that allows the user to select the report you want Oracle and associated parameters.   While the control is passed to Oracle 11 g reports.

    The requirement of one of the reports is to enable more detailed codes be selected by the user and then shown.  The detailed code is an alphanumeric field that can hold between 4 and 6 characters.

    If my data model looks like this

    SELECT student_id

        FROM my_view

       WHERE detail_code IN :p_detail_code;

    and the parameter that I'm passing to Oracle reports looks like this (when I view the source HTML code)

    & p_detail_code =('1001','1002')

    so no record is selected.

    However, if my data model looks like this, I get the records you want:

    SELECT student_id

      FROM my_view

    WHERE detail_code IN ('1001', '1002');

    We have Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production.

    Please tell me what is the problem with my setting.  Thanks a lot for your help.

    This isn't how you can use in. See this example on how to solve it with the digital settings. If your setting is a character, you need to change this.

    In fact, when you simply enter 1,2,3 as an input parameter, you actually create this query:

    Select *.

    from my_table

    where num_column in ("1,2,3")

    Use rather a lexical parameter:

    Select *.

    from my_table

    & p_where

    In the parameter after relaxation shape, build the lexical like this:

    :p_where := 'where num_column in ('||:p_param||')';
    
  • I agree with the CC. But I also have APS CS6. I get the message that the updates are available. But whenever I try to 'install', I get the message that it failed and the error code is U44M1P7. What is the problem with obtaining this update?

    Whenever I try to install I get message that he had failed. The error code is U44M1P7. What is the problem with this update?

    U44... Update error http://forums.adobe.com/thread/1289956 can help

    At some point in the past (I don't know the exact date) Adobe "merged" the original update manager in cloud Update Manager, which means that you no longer use your original update manager

    I read a lot of posts that the updater latetest (cloud) sometimes does not work with old programs... Try to install your updates manually

    Beginning of the updates here and product selection, read to see if you need to install updates in the order of the numbers, or if updates are cumulative for the product http://www.adobe.com/downloads/updates/

  • What is the problem with this URL

    Can someone tell me what is the problem with this url
    owa_util.redirect_url(apex_util.prepare_url('f?p='||:APP_ID||':25:'||:APP_SESSION||'::'||:DEBUG||':25,28'||':P25_JOBID,P25_PG:&P3_JOBID.,3, null,||:APP_SESSION'));
    It gives me a value for P25_PG, that is to say 3 but always sets P25_JOBID to 0

    Gus

    Hello Gus,

    It looks like point P3_JOBID has no value for the rendering of the page.
    If the value is set subsequently, you can try the following change

    owa_util.redirect_url(apex_util.prepare_url('f?p='||:APP_ID||':25:'||:APP_SESSION||'::'||:DEBUG||':25,28'||':P25_JOBID,P25_PG:'||:P3_JOBID||',3, null,||:APP_SESSION'));
    

    But the part at the end

    ||',3, null,||:APP_SESSION'
    

    Wil do nothing because you give only 2 items in the list separated by commas of the page elements you want to submit. Everything after the second comma in the comma separated value list is of no use for the url of the apex.

    As additional info, the URL of the Apex is built like this:
    >
    1 - application ID or alias
    2 - page ID or Alias
    3 - session & SESSION. : APP_SESSION
    4. application (for example, PRINT_REPORT = REPORT_1) & ASK. : REQUEST
    5 - debug (YES or NO) & DEBUG. : DEBUG
    6 - cache framework

    APP - clear the cache for the entire application
    SESSION - clear the current user session cache
    PR - Reset pagination
    x - clear the page cache x
    -empty the cache for the element y

    7 - separated by a comma list of items on the page
    8 - the list of values separated by commas
    9 - mode printer friendly (YES or blank)

    f? p = & APP_ID.: 1010: & APP_SESSION. : & DEBUG. : RP, 1010:P1010_ITEM1, P1010_ITEM2, P1010_ITEM3:A, B, C
    >

    Kind regards
    Kees Vlek
    -----
    Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66
    If the answer to question please change replied and mark the appropriate post as correct / helpful.

  • Problem with date settings

    Hi all. I have the problem with the Sub statement


    SELECT THE DOUBLE TO_DATE(:P_DATE,'DD/MM/YY')

    it get me ' 10 / 04/2012 '

    but I want 10/04/12 not as above.

    I saw that DD/MM/YY not like 'DD/MM/YYYY' still it gives me 10/04/2012 why can someone explain?

    Kind regards
    Uraja

    To_Date will always give you the output date format-based nls...

    Instead, you can try

    SELECT to_char (TO_DATE(:P_DATE,'DD/MM/YY'), ' DD/MM/YY') FROM DUAL;

    or replace nls_Date_format jj/mm/aa

  • Problem with Date calc

    I am trying to get this FormCalc calculation to work:

    Date2Num (form1. Page1_SF. EffectDates.endDate, ' DD/MM/YYYY') - Date2Num (form1. Page1_SF. EffectDates.startDate, "DD/MM/YYYY")

    Evently, I will divide by 7 to get the number of weeks, but the initial calculation won't work after the dates entered.

    Can you tell me what the problem with my forumula?

    Thank you.

    Odd. Something strange on the Date2Num format. I changed them in the calculation for "YYYY-MM-DD" and it works. Note that this is the calculation of the number of days elapsed.

    If (HasValue (form1. Page1_SF. EffectDates.endDate) & HasValue (form1. Page1_SF. EffectDates.startDate)) then
    $.rawValue = Date2Num (form1. Page1_SF. EffectDates.endDate.rawValue, 'YYYY-MM-DD') - Date2Num (form1. Page1_SF. EffectDates.startDate.rawValue, "YYYY-MM-DD")
    on the other
    $.rawValue = null
    endif
    Steve
  • problems with DATE

    Hello

    I have the following plsql:
    DECLARE
       TYPE record_t
       IS
          RECORD (
             col_1    DATE,
             col_2   VARCHAR2 (7),
             col_3    VARCHAR2 (1)
          );
    
       l_record    record_t;
       l_ref_cur   dyn_fetch.ref_cur_t;
    BEGIN
       l_ref_cur := helper.ref_cur;
    
       LOOP
          FETCH l_ref_cur INTO   l_record;
    
          EXIT WHEN l_ref_cur%NOTFOUND;
    
          ELSIF (LOWER (l_record.col_3) = 'd')
          THEN
             DELETE FROM  table_new
                   WHERE   MY_DATE = TO_DATE (l_record.col_1);
    
             DBMS_OUTPUT.put_line ('here it is: ' || l_record.col_1);
          END IF;
       END LOOP;
    
       CLOSE l_ref_cur;
    END;
    So, the problem is, that 'L_RECORD. COL_1"returns dates in the form: jj. MM YY

    It works very well with most of the files, but it does not find the file with date = 15.08.1930. Then I l_record.col_1 = 15.08.30! Maybe the problem is that oracle is not sure if she should return * 1930 or 2030 *...

    So, how can I solve this problem, I want to return the l_record.col_1 * 15.08.1930 *, NOT 15.08.30!

    Should I change the definition of the record_t type?

    Thank you!

    Your record definition defines COL_1 as a date, so there is not need to convert a date value in this column.

    Remove the TO_DATE() function inside the loop.

  • What is the problem with my trigger :(

    Hi friends

    What is the problem with this trigger please
    SQL> select object_type from user_objects where object_name='CE_STMT_INT_TMP';
    
    OBJECT_TYPE
    -------------------
    TABLE
    
    SQL> create or replace trigger ce_stmt_int_tmp_trg1
      2  after insert on ce_stmt_int_tmp
      3  for each row
      4  begin
      5      :new.column7 := 'checkno_test';
      6  end;
      7  /
    create or replace trigger ce_stmt_int_tmp_trg1
                              *
    ERROR at line 1:
    ORA-04084: cannot change NEW values for this trigger type
    Thank you very much

    I guess you mean that SQL * Loader is insertion of the value of the column, not not to date. You can override the value SQL * Loader is the insertion in a level line BEFORE INSERT trigger.

    Justin

  • What is the problem with my iMac mid-2011

    Hello

    Need help find out what is the problem with my iMac to mid-2011.

    Yesterday during a reboot it just never came to life.

    On turning the power on, I get the RINGTONE to start and that's it. The screen is totally black. Nothing behind tried with a torch.

    VRAM rearmament so far I tried repeatedly, unplug and plug, all kinds of combinations of keys in the carillon and nothing.

    Connected to an external monitor and shows nothing of too - no signal.

    Any way that I can know what is wrong with it before sending it to the service tech? I suspect bad graphics card but how do you ensure?

    From what you describe, it looks like a hardware issue that Apple will only be able to resolve, but not to despair immediately.

    Read it please get help with graphics issues on external displays connected to your Mac - Apple Support.

    I know that the title and subject are not suitable to your concern, but buried in this document is the following passage that contains three links describing the steps to follow.

    If you can not change the resolution of your screen because you see no image, restart your Mac in safe mode to reset the default display resolution.

    If booting safe mode doesn't resolve the problem, reset your Mac NVRAM and SMC to reset the video ports on your Mac to their default values.

    That first, then write again for additional suggestions if you are still having problems.

Maybe you are looking for

  • contacts will not open the e-mail program

    On my DroidX when I open a contact and select the e-mail address he opens my email software (k9 mail) so that I can send a message. On my Xoom when I try exactly the same the screen just turns gray and hangs until I got hit again. Does anyone have an

  • Acer 5740-6378 HDD dead - need of a recovery DVD

    I have the laptop mentioned above. He was stuck in the BIOS because the HARD drive is dead. How can I get the recovery DVDs? Any help will be greatly appreciated.

  • Can I both service pack 2 and 3 using my computer?

    I have the two service pack 2 and 3 given that this computer is new to me I do not know if it had two service pack 2 and 3. Should I have them both? The computer is running very slowly and im trying to find the problem. They take a LOT of space... Th

  • the "audible" ".aa" files: how to 'turn on' device?

    I downloaded my first "audible" book on Amazon today: specifically to test my new Clip Jam. I was able to transfer the file without any problems and the file is displayed correctly in the options of the menu "audio books. When I click on play however

  • Outlook 2007 has killed my PST, lost messages! Help, please.

    Errors were found in the file. Quit all applications to mail and then use the Inbox Repair tool. I'm having a huge problem with Outlook 2007 on Vista Home Premium 64-bit.  I recently bought a new computer and have moved my PST file to him.  When I tr