Sql query not qualifying date- what did I do wrong?

I am not getting the date request from this query, it produces all records in table- not my date request....What am I doing wrong.
select * from table
where (dep_apt in ('123','T123','456','T456'))
or (dest_apt in ('123','T123','456','T456'))
and fpdate >= '23-APR-07'
order by fpdate;

> It is not a date format issue- I set up a trigger to set the date formats on all transactions to be a valid date string that I need.
Perhaps it isn't in this case, but surely
> and fpdate >= '23-APR-07'
is just asking for trouble? Why would you not use a date expression?
Are you sure you will never have to deal with dates < 2000 (if nls_date_format uses YY) or > 2049 (if using RR), or a language other than English? Didn't the industry spend billions not so long ago cleaning up all the crappy 2-digit year values, and didn't we chuckle at the 1970s COBOL programmers who (we were told) put them there to save a couple of cheap bytes? If hardcoding a date literal, why not DATE '2007-04-23' anyway?

Similar Messages

  • HT2534 I have apple id but I still can not use it. what did I do wrong?

    I hava already applied for the apple id and now I have it but I still can not use it.

    Did you sign-off your old AppleID and sign on with your new one in Settings -> iTunes and App Store?

  • Feed approved: Not Showing Up - What did I do wrong?

    Hi podcasting community!
    I am posting here because I am trying to make sure I didn't do anything wrong.
    When I search for my podcast under iTunes (I type "audiobook nerds") it says it can find the episode. My podcast was submitted and approved on 1/24/13.
    However, when I click on the link in iTunes it just says "This Page Is Temporarily Unavailable" I understand if there is a wait due to many podcasts but I just wanted to be sure I didn't screw anything up and that isnt the reason.
    My feed is:
    feed://audiobooknerds.com/podcast?format=rss
    And my podcast is:
    http://www.audiobooknerds.com/podcast
    With the link iTunes gave me:
    https://itunes.apple.com/us/podcast/audiobook-nerds-podcast/id596414063
    I submitted that feed link, got approval, and same day could see my search in iTunes. But when I click on the link it just goes to that giant music symbol and says things are temporarily unavailable.
    I can be patient, just wanted to make sure there isnt something screwing up on my end that is my fault.
    Thanks guys!!

    The fact that your Store page has a web page indicates that the podcast has been accepted and should be in the Store in iTunes, so it seems most likely that there is a server problem going on. Your episode plays OK in the Store page. The feed can be subscribed to manually in iTunes and the episode plays OK there.
    There are some errors in the feed, but they are minor and wouldn't cause this mystery disappearance in the Store. You have specified a category which is not one of the ones listed for use in feeds at
    http://www.apple.com/itunes/podcasts/specs.html#categories
    Your enclosure tag reads
    <enclosure url="http://traffic.libsyn.com/audiobooknerds/ABN001.mp3" length="54.30" type="mp3"/>
    The length must be the file size in bytes. The type should be audio/mpeg. None of these would cause your podcast not to appear in the Store, though they should be corrected.

  • SQL query not calculating

    SQL query not calculating
    gross_amount is giving the value of extended_amount and the gross_price_rc is giving the value of unit_selling_price
    select customer_trx_line_id,
    ( extended_amount / 1- (decode(decode(attribute6,null,0)+decode(attribute7,null,0)+decode(attribute8,null,0)+decode(attribute9,null,0)/100,null,0,1,0))) GROSS_AMOUNT,
    ( unit_selling_price /1-(decode(decode(attribute6,null,0)+decode(attribute7,null,0)+decode(attribute8,null,0)+decode(attribute9,null,0)/100,null,0,1,0))) gross_price_rc
    from ra_customer_trx_lines_all
    where attribute6 is not null or attribute7 is not null or attribute8 is not null or attribute9 is not null
    whats the isuue here??
    Thanks

    decode(attribute7,null,0)Looking at it again, this always returns 0 or NULL, so it not really surprising
    DECODE
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions040.htm#i1017437
    CASE
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/expressions004.htm#i1033392

  • Using Parameters in SQL-Query not only in where clauses

    Hi,
    I try to use Publisher parameters in the SQL Query from a Data Set.
    All of them have default values.
    So far, this is no problem, unless I try to use such a parameter value as an ordinary attribute value:
    >
    select
         case when (:pv_Group = 'no') then "DM15D_BETRIEBSTEIL"."BETR_TEIL"
                                            else :pv_some_Text end                                                                  as Betr_Teil,
         case when (:pv_Group = 'no') then "DM15D_BETRIEBSTEIL"."SUVA_NR_FORM"
                                            else :pv_some_Text end                                                        as Suva_Nr,
         case when (:pv_Group = 'no') then "DM15K_RIS_FAKTEN_PRO_BTT_JHR"."RIS_VOLLBESCH"
                                            else sum("DM15K_RIS_FAKTEN_PRO_BTT_JHR"."RIS_VOLLBESCH") end      as Vollbesch
    from "GDWH05"
    where
         "DM15D_BETRIEBSTEIL"."SUVA_NR_FORM" in (:pv_nim100)
         fetch first 65001 rows ONLY
    >
    The parameters 'pv_Group' and 'pv_nim100' are working fine. (when or where clauses)
    The parameter 'pv_some_Text' unfortunately not. (simple literals)
    When I try to validate the above SQL, I get the following Error:
    <font color="red">
    java.io.IOException: prepare query failed[nQSError: 43113] Message returned from OBIS. [nQSError: 46033] Datatype: 25 is not supported.
    </font>
    After use a cast function:
    >
    else CAST(:pv_some_Text AS CHARACTER)
    >
    I get this ERROR:
    <font color="red">
    java.io.IOException: prepare query failed[nQSError: 43113] Message returned from OBIS. [nQSError: 19002] Incorrect use of parameters. The parameters used in CAST cannot be resolved without ambiguity.
    </font>
    We use OBIEE 11.1.1.6.4 on a Win64-System.
    Thank's for any help.

    Hi Alex,
    let's leave away any unnecessary details.
    This is the SQL, inserted in the window 'Edit Data Set' of BIP Data Model:
    >
    select
         '--1'     as Betr_Teil,
         '--2'      as Suva_Nr,
         sum("GDWH05"."DM15K_RIS_FAKTEN_PRO_BTT_JHR"."RIS_VOLLBESCH") as Vollbesch
    from "GDWH05"
    where
         "DM15D_BETRIEBSTEIL"."SUVA_NR_FORM" in ('122-4.4')
         fetch first 65001 rows ONLY
    >
    Everything is fine when I click OK, the script goes back to the metadata.
    Let's try this script with bind values in ORACLE SQL Developer.
    This SQL is the physical part, found in the OBIEE-Log (Log level 5), except the bind values. Therefore we find, in the where clause, the join. In the logical sql, we don't have to join, because it's handled in the Common Enterprise Information Model (CEIM)
    >
    with
    sawith0 as
    select
    sum(t39617.ris_vollbesch) as c1
    from
    dm15d_betriebsteil t39455,
    dm15k_ris_fakten_pro_btt_jhr t39617
    where
    t39455.id_betriebsteil = t39617.id_betriebsteil
    and t39455.suva_nr_form = '122-4.4'
    select
    d1.c1 as c1,
    d1.c2 as c2,
    d1.c3 as c3
    from
    select
    :pv_some_text as c1,
    :pv_some_text as c2,
    sum(d1.c1) as c3
    from
    sawith0 d1
    d1
    where
    rownum <= 65001
    >
    This SQL works fine, even with bind values for 'pv_some_text'.
    But, when using the following SQL in the BIP Data Model:
    >
    select
         :pv_Text as Betr_Teil,
         :pv_Text as Suva_Nr,
         sum("GDWH05"."DM15K_RIS_FAKTEN_PRO_BTT_JHR"."RIS_VOLLBESCH") as Vollbesch
    from "GDWH05"
    where
         "DM15D_BETRIEBSTEIL"."SUVA_NR_FORM" in ('122-4.4')
         fetch first 65001 rows ONLY
    >
    The following ERROR occurs:
    <font color="red">java.io.IOException: prepare query failed[nQSError: 43113] Message returned from OBIS. [nQSError: 46008] Internal error: File server\Query\Optimizer\ServiceInterfaceMgr\Utility\Src\SQOIUTypeVisitor.cpp, line 643.</font>
    In my opinion, either I use a wrong syntax, or BIP has a problem with parsing the script.
    Thank you for your most welcome help.

  • How to run recordset SQL query in FORM DATA event

    How can I run recordset SQL query in FORM DATA event upon clicking on Add button in the document?

    Hi Slamet,
    When you receive a form data event you have a class containing inside it a ObjectKeys xml info regarding the object added/modified,...
    With the objects keys you can then use the DI API method called GetByKeys to obtain the DI Object.
    There is some information about it in the SDK Help file, mainly in the "FormDataEvent" class definition:
    <i>The event provides the unique ID (BusinessObjectInfo.ObjectKey) of the modified business object. You can use the value of this property as an input parameter in the DI API DataBrowser.GetByKeys method to get a DI object.</i>
    Pay attention you don't have this information in the Before=True event of the Add as it is not yet in the database.
    Hope it helps
    Trinidad.

  • How will write SQL query to fetch data from  each Sub-partition..

    Hi All,
    Anyone does have any idea about How to write SQL query to fetch data from Sub-partition.
    Actually i have one table having composite paritition(Range+list)
    Now if i want to fetch data from main partition(Range) the query will be
    SELECT * FROM emp PARTITION(q1_2005);
    Now i want to fetch data at sub-partition level(List) .But i am not able to get any SQL query for that.
    Pls help me to sort out.
    Thanks in Advance.
    Anwar

    SELECT * FROM emp SUBPARTITION(sp1);

  • Music not recognized from old PC to new, what did i do wrong.

    So i just got a new PC.  I saved my entire Itunes file on an external hardrive.  The music all transfers to the new PC and i loaded it into the newest Itunes.  I authorized the new computer through Itunes and got all artwork.  Now i cannot play songs or transfer music to my i-pod.  I had to rboot the Ipod. so now i have an empty Ipod and a bunch of Music I cannot play.  I've connested my Iphone and it seems to recognize it, but I'm afraid to connest it again until i trust the itunes to work.  When I try to play a song it say cannot locate the original/
    What did i do wrong?  What can I do?  I still have the old tower available to retreive Itunes
    Thanks for any advice
    MJ

    The index page copied from the template is now reading the css.  I did nothing other than shut down DW and open it again.  Maybe it just takes a while for the process to complete.  Am now creating more pages that are also not reading css.  Will do the same and see if it all connects.

  • Sql query need for date format''Mon 23 Apr 16:45 pm'

    i need SQL query to print date like 'Mon 23 Apr 16:45 pm' format

    SQL> select to_char(sysdate,'Dy fmddfm Mon hh24:mi pm','nls_date_language=american') from dual
      2  /
    TO_CHAR(SYSDATE,'DY
    Fri 27 Apr 13:04 pm
    1 rij is geselecteerd.Regards,
    Rob.

  • I have downloaded the Adobe CC free trial.  But when I tried to use the photoshop, it always tells me the photoshop was not working and will be closed.  What did I do wrong ?

    I have downloaded the Adobe CC free trial.  But when I tried to use the photoshop, it always tells me the photoshop was not working and will be closed.  What did I do wrong ?  I like to try it before I buy.  Help, please !

    Could you go to (in Photoshop) Help>System Info>Copy and paste here in its entirety? Also, if there is a crash report paste it here as well.
    Benjamin

  • HT201320 I am having trouble with my wife's new iPhone 5s. She can receive her telus email but can not send any email what did I do wrong in setting up her account?

    I am having trouble with my wife's new iPhone 5s. She can receive her telus email but can not send any email what did I do wrong in setting up her account on her iPhone? I tried to just copy the info from her old iPhone.

    The sending of email is accomplished via the SMTP server. Take a moment to get back into Settings>Mail, contacts, calendars and select the account. Go to the SMTP server and check to make sure that username and password are entered in all of the appropriate places. If you cannot get it to work after trying to just change those settings, remove the account from the phone and recreate it. When recreating, make sure you enter the username and password in every location, even if the phone says optional. Make sure you have the settings from either the email provider or from the other device. Make sure that SSL is on or off as necessary.

  • Since I updated Firefox my banking pages and email pages do not load correctly..What did I do wrong. I am using IE because I can't get to my email on Firefox

    I am using IE because I can't get to my email on Firefox now that I updated it. Also, my banking pages do not load correctly. What did I do wrong? When I updated Firefox I did not add the extras included. Could that be what is wrong.

    I am using IE because I can't get to my email on Firefox now that I updated it. Also, my banking pages do not load correctly. What did I do wrong? When I updated Firefox I did not add the extras included. Could that be what is wrong.

  • HT201209 I bought my Apple iTunes & Apple AppStore Card's at Best Buy, but when I try to use them I get this error: The Gift Certificate or Prepaid Card code you entered has not Ben properly activated. What did I do wrong or did Best Buy not scan it right

    I bought my Apple iTunes &amp; Apple AppStore Card's at Best Buy, but when I try to use them I get this error: The Gift Certificate or Prepaid Card code you entered has not Ben properly activated. What did I do wrong or did Best Buy not scan it right! Real Geniuses in that store!

    If so, then review the first link to see if you can troubleshoot your issue yourself. If that doesn't work, then contact iTunes Support via the second link below:
    Invalid, inactive or illegible codes:
    http://support.apple.com/kb/TS1292
    Contact iTunes support here:
    http://www.apple.com/support/itunes/contact/
    Cheers,
    GB

  • HT1750 I tried to change the memory and now my Imac will not power on. and there are no beeps. what did I do wrong?

    I tried to change the memory and now my Imac will not power on. and there are no beeps. what did I do wrong?

    Don't know.  Could be any number of reasons.  Re-read the how to install RAM manual again for your model iMac.  Double & triple check to make sure you purchased the right RAM chips.   Make sure they are seated properly.  If you didn't hear a snap when seated, the RAM is not properly seated. 

  • I had microsoft exchange added and when I synced I lost all of my prior contacts. Also, thenames all turned to numbers.  Example when you get a text from a contact, their name appeared.  Now just a phone number.  What did I do wrong and can I get it back?

    Since adding microsoft exchange I sunced my phone and lost all of my old contact, notes. etc.  Also, when I do get a text message it appears as a number instead of a name.  What did I do wrong and can I get my old info restored.  When I tried restoring it only gave me the same thing.

    That number is for an apple server in the UK that is used for iMessage activation.  A hidden SMS is snet to that number when you turn iMessage on and is used to verify your phone number.  I suggest you turn iMessage off.  In settings/phone turn on dial assist.  Check with your carrier to see if you can send an international SMS as you end that possibility to activate iMessage.  Rest your phone (Hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for device to restart (no data will be lost).) then turn iMessage back on.

Maybe you are looking for

  • Edit file size disagreement

    Editing the library of Aperture is covered by using Textwrangler, but I post this in hopes someone else had the exact same issue and that they can share their info on how they resolved it. I have a file library that contains referenced files. Looks l

  • Fingerprin​t no longer recognized in BIOS pre-boot after reformat

    Hello I recently purchased a ProBook 4544s, and was getting it all set up and rockin. Everything was working great until either the wife got a virus (diamondnet crap, put pops on all over) or an update just didnt jive well. After I got rid of virus a

  • Photo files moved to new hard drive, need to re-connect photo tagging

    Moved back catalog of photos from an almost full internal hard drive to a new larger external hard drive. Elements Organizer is now unable to locate tagged photos on the new hard drive Is it possible to re-connect the photo tagging ?

  • Creative Cloud desktop app not seeing my installed CC2014 apps

    I just uninstalled Creative Cloud and reinstalled in as it was not launching. Now it is launching fine but not seeing the installed cc2014 apps on my machine. Its prompting me to install them. How do I fix this?

  • How do I get a refund after I downgarded my icloud storage?

    I upgraded my icloud storage but my son I did not need the extra storage. I want to cancel the extra storage and get a refund but I can not find it any where on line and customer spport will not tell me on the telephone how do get a refundort. What d