Select statement will only accept datepicker data if filled in

In my report region source i have the following. it works but some times the user want to have all the dates from :P20_XXD and :P20_DD2
But the report gives you nothing if don't fill in the two date pickers.
select
incident_id,
incident_type,
status,
ccb_identifier,
last_name,
dbms_lob.substr("PROBLEM_TITLE",4000,1) "PROBLEM_TITLE",
dbms_lob.substr("PROBLEM_DESCRIPTION",4000,1) "PROBLEM_DESCRIPTION",
create_datex ,
related_item,
dbms_lob.substr("RESOLUTION_DIARY",4000,1) "RESOLUTION_DIARY"
from "KEYHD"
where "INCIDENT_TYPE" like :P20_LIST_INCIDENT_TYPE
and (CREATE_DATEX >= TO_DATE(:P20_XDD,'DD/MM/YYYY')
and CREATE_DATEX <= TO_DATE(:P20_DD2,'DD/MM/YYYY'))

If values from the date pickers are not supplied then the resulting null value(s) don't satisfy the date comparison predicate. Null values need to be replaced by suitable defaults, e.g. by using the nvl function:
select
incident_id,
incident_type,
status,
ccb_identifier,
last_name,
dbms_lob.substr("PROBLEM_TITLE",4000,1) "PROBLEM_TITLE",
dbms_lob.substr("PROBLEM_DESCRIPTION",4000,1) "PROBLEM_DESCRIPTION",
create_datex ,
related_item,
dbms_lob.substr("RESOLUTION_DIARY",4000,1) "RESOLUTION_DIARY"
from "KEYHD"
where "INCIDENT_TYPE" like :P20_LIST_INCIDENT_TYPE
and (CREATE_DATEX >= nvl(TO_DATE(:P20_XDD,'DD/MM/YYYY'), date '-4712-01-01')
and CREATE_DATEX <= nvl(TO_DATE(:P20_DD2,'DD/MM/YYYY'), date '9999-12-31'))(Always post code wrapped in \&hellip;\ tags to preserve formatting).

Similar Messages

  • I bought a used macbook pro from a friend. Software updates are available, but when I try to update, the computer asks for apple id and will only accept the former owner´s. How can I connect my macbook to my apple id?

    I bought a used macbook pro from a friend. Software updates are available, but when I try to update, the computer asks for apple id and will only accept the former owner´s. How can I connect my macbook to my apple id?

    The first thing you should do after acquiring a used computer is to erase the internal drive and install a clean copy of OS X. How you do that depends on the model. Look it up on this page to see what version was originally installed.
    If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard installation disc, which you can get from the Apple Store or a reputable reseller — not from eBay or anything of the kind.
    If the machine shipped with OS X 10.6, you need the gray installation discs that came with it. If you don't have the discs, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To boot from an optical disc, insert it, then reboot and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
    If the machine shipped with OS X 10.7 or later, it should boot into Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
    Once booted from the disc or in Internet Recovery, launch Disk Utility and select the icon of the internal drive — not any of the volume icons nested beneath it. In the Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive, which is what you should do.
    After partitioning, quit Disk Utility and run the OS X Installer. When the installation is done, the system will automatically reboot into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    You should then run Software Update and install all available system updates from Apple. If you want to upgrade to a major version of OS X newer than 10.6, buy it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the previous owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed — you have to repurchase them.

  • Tried to upgrade os4 to os7 but could not due to "find my iphone" still turned on.   Could not turn off at that stage so set up as new iphone.  Now icloud will only accept past id email address which i no longer have,  but itunes on my phone has my correc

    Tried to upgrade os4 to os7 but could not due to "find my iphone" still turned on. 
    Could not turn it off at that stage so set up as new iphone.  Now icloud will only accept past id email address and password which i no longer have,
    but itunes on my phone has my correct current id and password.  I need to restore my back up from itunes, i did not use icloud.
    Any help please. 
    I did try yesterday but did not realise at that time that itunes had correct apple id.  Hopefully this is a good thing!

    Thank you for your prompt reply.
    I have looked at icloud.com/find numerous times and my iPad is not showing at all (see picture below). As I said I did turn off 'Find My iPhone' on my iPad and then erase all settings and data before taking it to the repair centre.
    The gentleman at the repair centre said that the device won't restore because "Apple thinks that 'Find My iPhone' is still turned on" (I'm repeating what he said).

  • A string that can be displayed as both ASCII and hex in an indicator will only save the data to a file in ASCII format

    We can see the data in an indicator just fine, but when we try to write that string of hexadecimal data to a file, it will only save the data in ASCII format.  
    This sounds fairly simple, as the indicator can be selected to display the data in several different formats (VI>Properties>Appearance>Display Style: Normal, Backslash...., Hexadecimal).  However, I have been unable, as of yet, to save the data in different formats.
    Solved!
    Go to Solution.

    altenbach wrote:
    ... or you could just read the string:text.text property to get whatever is actually displayed.
    like this...
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    texttextString.PNG ‏6 KB

  • We are unable to have iPhoto books shipped into Canada, because the shipping address field will only accept US zip codes. Any solutions?

    We are unable to have iPhoto books shipped into Canada because the shipping address field will only accept US zip codes. Any solutions?

    Have you set the Print Products Store to Canada in the iPhoto Preferences > Advanced Panel? 
    This determines the address format.
    And your billing address and shipping address must be in the same country, as defined for your AppleID and credit card.

  • I am trying to down load an audible book an I get a message that I can't because my phone will only accept two audible accounts.  I only have two accounts.  what is the problem?

    I am trying to down load an audible book an I get a message that I can't because my phone will only accept two audible accounts.  I only have two accounts.  what is the problem?

    I don't seem to understand your question, will you provide more information.

  • I bought my wife an ipad for xmas and the machine is faulty the apple authorised dealer admitted it was faulty and wants to replace my new machine with a factory refurbished unit. I told them that i will only accept a new one? am i right?

    i bought my wife an ipad retina for xmas and the machine is faulty, it keeps on switching off. the apple authorised dealer admitted it was faulty and wants to replace my new machine with a factory refurbished unit. I told them that i will only accept a new one as it is only a few weeks old and had the problem from the begining? is it correct that apple replaces new defective products with factory refurbished one? I have used apple products most of my life from mac 2 to G5. I had over a dozen apple machines and never had a problem so far? I do not believe this is right..

    architectmartin wrote:
    In the EU there is also a mandatory two year warranty by european union law. I am not a lawyer but i never signed or agreed to any apple policy at the time of purchase, i was told you have a two year guarantee bring it back if anything goes wrong which i did and now i am being quoted all sorts of policies. my own policy is that if you buy new you get new, with no excuses.  I feel a bit cheated by apple if i have to compromise with a second hand unit. the unit is not even a month old and we took it to the original store a couple of weeks after it was bought and they sent us to take it to a servicing dept in another town. I am an apple fan and expect excellent service like the products themselves.
    No one ever does sign anything - the purchase itself, where you exchange money for the product, is your de facto agreement to all warranties and policies set forth by both the seller and the OEM supplier.  That's a pretty firmly established principle of consumer law (image the nightmare if you had to read and sign to such things every time you purchased anything or everything?).
    You can complain to the store or to Apple about it if you wish.

  • Forgot password icloud email will not accept my date of birth to recover same

    I have forgotten my password for my icloud email.
    Tried recovery - an email has been sent - but where?
    Tried answering questions - will not accept my date of birth as being correct.
    Would appreciate help.

    I had this issue too yesterday. Both my account and my wifes account disappeared and you could not log into them, or reset them as the Date of Birth was not recognized. I am talking with Apple iTunes support.. They are getting quite a few calls like this, sounds like an change has gone wrong, maybe in conjunction with the roll out of 2 step verification. Painful waste of time on a Saturday to resolve this. Interestingly if you have an icloud account linked to your Apple ID and log into that and check your account info, you will see your actual email address as a weird prefix with the word 'disputed'.. A system issues for sure.

  • I'm I'm using a video editing program that will only accept music in MP3 file form, so it won't let me use any of my itunes music.  Is there a way to convert itunes music files to MP3 files?

    I'm using a video editing program that will only accept music in MP3 file form, so it won't let me use any of my itunes music.
    Is there a way to convert itunes music files to MP3 files?

    There is HangTimes' never fail method:
    http://www.bulletsandbones.com/GB/FAQPages/NeverFail.html

  • Can we write the select statement on maintence view for data retreval

    Can we use the select statement on maintence view
    Regrads
    Diva

    No. U cannot write a select on maintenance view.

  • How to make Select List Read only (Keep key Data)

    I'd like to make a select list read only when the screen is in maintenance mode because the select list value is part of the key.
    However, when I make the select list read only, the update fails because it appears making it disable lose's it's value.
    How can I make a select list read only and keep it's value for update.

    In HTML Header I have
    <script type="text/javascript">
    function Disable_List(pthis,hideitem)
    if ($x(hideitem).value == 'Y')
    {   $x(pthis).disabled = "disabled";
    </script>
    <script type="text/javascript">
    function Load_Start()
    Disable_Item('P5_SUBCODE','P5_XW_HAS_VALUE');
    Disable_List('P5_LTY','P5_XW_HAS_VALUE');
    </script>
    When I click apply changes, my Validation check that doesn't allow nulls in the "P5_LTY" fires saying the field can't be null. The select list is grayed out and I see the value, but the validation check thinks it's null.
    Edited by: spuchc on Jun 15, 2010 8:03 AM

  • Using compressor DVD Studio Pro 4 will only accept ac3 format in the burn process. ac3 makes a nnsense of the good sound delivered, 30% reduction in volume, auto volume levelling giving unwanted volume variations. Used to be able to burn using AIFF/WAVE,

    AS Above. Edited in FCPX. Excellent sound file. Using Compressor 4 to DVD Studio 4. Wanting AIFF or WAVE sound for acurate sound.
    Previously DVD Studio 4 has accepted AIFF etc and delivered sound as reuired. Now, during the burn process everything other than ac3 is declined as 'video bit rate too high', but will burn if the AIFF format is replaced with ac3 (which I presume meanss the 'video bit rate too high' is referring to the sound file)
    The issue with ac3 format is the huge reduction in original volume and worse, the 'auto volume levelling' that makes a nonsense of the original soundtrack - with simply aweful unwanted variations in volume Throughout the  the dvd.
    I have tried everything I can think of to get around this. The 'volume gain' in compressor doesn't make any difference. Exporting just AIFF and the Video to DVD 4 doesn't make any difference, it always declines anything but the aweful sound ac3 delivers.
    I have customers awaiting a musci DVD, not with thei quality I can't.
    Cheers
    Phil

    The total video bit rate is determined by audio & video. Depending on what rate your video file was encoded at will determine how much room is left for audio. PCM(aiff/wav) audio requires a bigger piece of the pie. Video bit rate too high means your overall(video+audio) rate is going above 9Mbps which the format won't allow. The only way to use aiff would be to lower your video file's data rate. The length of your program is also a factor in all of this.
    I had some problems in the past with using aiff instead ac3. Although there shouldn't be any issue I experienced playback issues on some players that couldn't be explained but were cleared up by ac3.  I have been using the same specs as Dave's suggestion for almost nine years and have not had any issues with mix, quality, or levels.

  • Select statement problem. how to get data in one row

    SELECT
    razm.datum_sklenitve,
    razm.datum_prenehanja,
    FROM
    zket_zaposlenci zap,
    zket_delovna_razmerja razm,
    zket_delovne_razporeditve razp,
    zket_sistemizacije_dm sistdm,
    zket_organizacijske_enote oe,
    zket_delovna_mesta delm
    WHERE
    zap.iid_zaposlenca = razm.iid_zaposlenca and
    razm.iid_delovno_razmerje = razp.iid_delovno_razmerje and
    sistdm.iid_sistemizacija_dm(+) = razp.iid_sistemizacija_dm and
    nvl(sistdm.iid_organizacijske_enote, razp.iid_organizacijske_enote) = oe.iid_organizacijske_enote and
    sistdm.iid_delovno_mesto = delm.iid_delovno_mesto and
    razm.datum_sklenitve <= to_date('31.12.'||:v_datum, 'dd.mm.yyyy') and
    nvl(razm.datum_prenehanja, to_date('31.12.'||:v_datum, 'dd.mm.yyyy')) >= to_date('01.01.'||:v_datum, 'dd.mm.yyyy') and
    razp.datum_nastopa_dela <= to_date('31.12.'||:v_datum, 'dd.mm.yyyy') and
    nvl(razp.datum_prenehanja_dela, to_date('31.12.'||:v_datum, 'dd.mm.yyyy')) >= to_date('01.01.'||:v_datum, 'dd.mm.yyyy') and
    zkep_splosno.zkep_hierarh_oe_n(nvl(sistdm.iid_organizacijske_enote, razp.iid_organizacijske_enote), :v_oe, to_date('31.12.'||:v_datum, 'dd.mm.yyyy')) = 1 and
    to_char(zkep_splosno.zkep_vrni_prvi_dr(razm.iid_delovno_razmerje, to_date('31.12.'||:v_datum, 'dd.mm.yyyy')), 'yyyy') = :v_datum
    and zap.iid_zaposlenca = 1093507
    order by razm.datum_sklenitve DESC
    return this rows:
    datum_sklenitve     datum_prenehanja
    1: 01.10.2010 00:00:00 | 31.12.2010 00:00:00
    2: 01.10.2010 00:00:00 | 31.12.2010 00:00:00
    3: 01.04.2010 00:00:00     | 31.08.2010 00:00:00
    4: 01.02.2010 00:00:00     | 31.02.2010 00:00:00
    how can i get in one select just this result.
    1: : 01.10.2010 00:00:00 | 31.08.2010 00:00:00 (first of A and then the next one of B which is not the same as top of B)
    I try everything but i do not know how. If anyone know how to do this.
    regards,
    MB

    Simma wrote:
    But the above is not documented.Not only that, but it's string aggregation which isn't meeting the OP's requirements.
    Though you could be easily forgiven as the OP hasn't clearly stated the logic behind the requirements.
    It could be something like wrapping the original SQL with something like the following...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select date '2010-10-01' as ds, date '2010-12-31' as dp from dual union all
      2             select date '2010-10-01', date '2010-12-31' from dual union all
      3             select date '2010-04-01', date '2010-08-31' from dual union all
      4             select date '2010-02-01', date '2010-02-28' from dual)
      5  --
      6  -- END OF TEST DATA
      7  --
      8  select max(case when rn = 1 then ds else null end) as ds
      9        ,max(case when rn = 2 then dp else null end) as dp
    10  from (
    11        select ds, dp, row_number() over (order by ds desc nulls last) rn
    12        from (
    13              select case when lag(ds) over (order by ds desc) = ds and lag(dp) over (order by ds desc) = dp then null else ds end as ds
    14                    ,case when lag(ds) over (order by ds desc) = ds and lag(dp) over (order by ds desc) = dp then null else dp end as dp
    15              from t
    16              order by t.ds
    17             )
    18*      )
    SQL> /
    DS                  DP
    01/10/2010 00:00:00 31/08/2010 00:00:00
    SQL>but who knows?

  • Sql insert statement will fail if the data value has empty line

    Hi,
    I notice if the insert statement in my .sql file contains data that has new line (enter key), the insert will fail.
    For example:
    insert into mytable (message)
    values ('this is the first line
    this is the second line that will cause insert statement to fail
    so as this third line');
    commit;
    How to overcome this?
    Please advise.
    Thank you.
    Message was edited by:
    bchurn
    Message was edited by:
    bchurn

    It did not return me any error. What is the error you are receiving ??
    SQL> create table mytable (message varchar2(500));
    Table created.
    SQL> insert into mytable (message)
      2  values ('this is the first line
      3  this is the second line that will cause insert statement to fail
      4  so as this third line');
    1 row created.
    SQL> @c:\test.txt
    1 row created.contents of c:\test.txt
    <<
    insert into mytable (message)
    values ('this is the first line
    this is the second line that will cause insert statement to fail
    so as this third line');
    >>

  • ITunes 7 will only run with date in application name. Why????

    Hi, I upgraded to iTunes 7 and could not get it to run. After the license agreement I would get an error -50 message. Somehow, during some messing around, I noticed that the application name had changed from iTunes to iTunes 06-10-04 I don't know how this cane about but iTunes loaded up with no problems.
    Then I took the 06-10-04 out of the name, and again iTunes would not run, the error -50 message appearing. Puting the numbers back into the name solved the issue once more.
    Any ideas???
    Thanks.
    Hugh

    I'm not going to try to answer the jar question, but as far as package name goes, if your CheckLogs class starts with the statement "package net.kenjanuski.utils;" then the fully qualified name of the class is net.kenjanuski.utils.CheckLogs. The java.exe command uses the fully qualified name of the class. So the only way it will work is "java net.kenjanuski.utils.CheckLogs" just as you found out.
    You can run the Jar file if you define the class in a Manifest file. See http://java.sun.com/docs/books/tutorial/jar/basics/run.html

Maybe you are looking for

  • OS 10.9.2 will not allow me to update my old iPhoto app.

    OS 10.9.2 will not allow me to update my old iPhoto app. I upgraded computer from a PowerBook G4 to a MacBook Pro and migrated my data onto the new machine. I had iPhoto '09 installed running on 10.5.8.Now on 10.9.2 and I get  get a message that iPho

  • G4 and HD content

    I have a SP 1.25 G4 that runs great. I have upgraded the graphics card to a Radeon 9800 256, and maxed out the Ram. I was wondering if editing HD content would be greatly improved by upgrading to a Dual processor? would my FCE and iMovie render times

  • Profit center substitution in cross-company sales

    Hi, We're working here with cross-company sales and profit center. Let assume that we have a final customer, sales organization (1090 and 1190) and plants (1090 and 1190). 1090 is selling to the final customer and 1190 will sell to 1090. Everything i

  • -208 ERROR preventing me from listening to purchases!

    ITunes 6 now asks me to authorise each song (purchases made over the last 12 months) and then I re-enter username and password and then I am told I have a new authorisation. (1/5) Then I get a -208 error, unknown error occurred. Please try again late

  • Dump error of t.codes MR51

    hello, I am getting the dump error of t.codes MR51, kindly let me know the errors and how to solve the same and oblige. thanks sujatha