Why is this date not between these 2 date range

hi ,
when i execute the following
select case when to_date('11/27/2006 11:58:35 PM' , 'mm-dd-yyyy hh:mi:ss am') not between
  to_date('11/26/2006 9:04:33 AM', 'mm-dd-yyyy hh:mi:ss am') and to_date('11/27/2006 12:02:00 PM', 'mm-dd-yyyy hh:mi:ss am') then 1 ELSE 2
  END from dual;it returns 1
why is that so ?
how can i really get the 2 ?
pls advise
tks & rdgs

r u saying that 11/27/2006 12:02:00 PM is actually the noon's 12 pm and not
the nite's 12 pm ?Yes. 12.02 AM = two minutes past midnight,12.02 PM = two minutes past midday (noon). Find out more.
So you probably want a range boundary of 11/28/2006 12:02:00 AM.
Cheers, APC

Similar Messages

  • Photoshop CC on Windows 7 is saving the file "date" as the created date not the modified date

    I have been using a much older version of PS (CS2) and just decided to update to PS CC. I have installed the trial version of PS CC and will begin the CC subscription as soon as the trial expires.
    I have noticed that PS CC saves the (main) date of the files as the "created date" not the "modified date" as it pertains to Windows Explorer and the Windows OS.
    Here is what is happening: I have a file that I created in 2007 that I use for a template. It is sized to specific dimensions, etc. and when I do my save as, it automatically saves into the desired file folder, so that's why I use this as a template. I setup a new photo and then drag and drop it into my template, flatten the image and save as. When doing this with PS CS2, the date for the newly saved file was assigned as the modified date (current date and time). So, when I searched for the file in Windows Explorer or when I went to open the file, the date shown for the file was the modified date. NOW, with PS CC when I perform the exact same process and do a save as, the file date shown in Windows Explorer and/or when I go to open the file is showing as the created date (3/9/2007), the date that I created and saved the template I use. This is aggravating to me because now when I want to open a file and sort by date, the date shown in Windows Explorer is not accurate. As far as I can tell, this only happens in PS CC. When I open an old file with ID CC and do a save as, it applies the current date, not the created date. And, when I was using PS CS2, whenever I did a save as the current date was applied as well.
    In summary, when performing a save as, the created date is being applied as the main date instead of the modified date. The question is: Is there a way to change this so that the modified date can be applied as the main date for the file when performing a save as?

    Below are two files created the exact same way on the exact same computer: the top one was saved in PS CS2 and the bottom one was saved in PS CC. Both were saved using the "Save As" command. You will notice that when the "Save As" command was used in CS2 it updated the "Created:" date, however, in the CC version the "Created:" date was not updated, only the "Modified:" date was updated. Is there a way to update the "Created:" date when performing a "Save As" in PS CC?

  • Why is this query not using the index?

    check out this query:-
    SELECT CUST_PO_NUMBER, HEADER_ID, ORDER_TYPE, PO_DATE
    FROM TABLE1
    WHERE STATUS = 'N'
    and here's the explain plan:-
    1     
    2     -------------------------------------------------------------------------------------
    3     | Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
    4     -------------------------------------------------------------------------------------
    5     | 0 | SELECT STATEMENT | | 2735K| 140M| 81036 (2)|
    6     |* 1 | TABLE ACCESS FULL| TABLE1 | 2735K| 140M| 81036 (2)|
    7     -------------------------------------------------------------------------------------
    8     
    9     Predicate Information (identified by operation id):
    10     ---------------------------------------------------
    11     
    12     1 - filter("STATUS"='N')
    There is already an index on this column, as is shown below:-
         INDEX_NAME INDEX_TYPE     UNIQUENESS     TABLE_NAME     COLUMN_NAME     COLUMN_POSITION
    1     TABLE1_IDX2 NORMAL     NONUNIQUE     TABLE1      STATUS     1
    2     TABLE1_IDX NORMAL     NONUNIQUE     TABLE1     HEADER_ID     1
    So why is this query not using the index on the 'STATUS' Column?
    I've already tried using optimizer hints and regathering the stats on the table, but the execution plan still remains the same, i.e. it still uses a FTS.
    I have tried this command also:-
    exec dbms_stats.gather_table_stats('GECS','GEPS_CS_SALES_ORDER_HEADER',method_opt=>'for all indexed columns size auto',cascade=>true,degree=>4);
    inspite of this, the query is still using a full table scan.
    The table has around 55 Lakh records, across 60 columns. And because of the FTS, the query is taking a long time to execute. How do i make it use the index?
    Please help.
    Edited by: user10047779 on Mar 16, 2010 6:55 AM

    If the cardinality is really as skewed as that, you may want to look at putting a histogram on the column (sounds like it would be in order, and that you don't have one).
    create table skewed_a_lot
    as
       select
          case when mod(level, 1000) = 0 then 'N' else 'Y' end as Flag,
          level as col1
       from dual connect by level <= 1000000;
    create index skewed_a_lot_i01 on skewed_a_lot (flag);
    exec dbms_stats.gather_table_stats(user, 'SKEWED_A_LOT', cascade => true, method_opt => 'for all indexed columns size auto');Is an example.

  • I have the CC Photography subscription. The last several days, every time I bring up Photoshop, I get a window stating "Sign In Required" and "Terms and Conditions for Trial Software". Why? This is not trial software.

    I have the CC Photography subscription. The last several days, every time I bring up Photoshop, I get a window stating "Sign In Required" and "Terms and Conditions for Trial Software". Why? This is not trial software.

    Asked to sign in after paying may help
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    or
    Chat Now button near the bottom for Activation and Deactivation problems may help
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

  • HT1373 See authorized computers - why is this question not answered?  Apparently, Apple wil not expose this information to the account owner.  Is is only possible to rate this article with 1-5 stars - not with zero stars?

    See authorized computers - why is this question not answered?  Apparently, Apple wil not expose this information to the account owner.  Is is only possible to rate this article with 1-5 stars - not with zero stars?

    Yep, you're right. Just 1-5 stars.

  • Why does this websites not work on our Mac products?

    http://www.gordonbennett2012.ch/
    We are working on the above website: We cannot get it to work on the following Mac devises. Would you please advise the reason for this and how we can fix it?
    From: FLY GAS
    Subject: Fwd: Website of Gordon Bennett 2012  
    Date: August 11, 2012 1:52:22 PM MDT
    To: René Louis  Cc: Mark Sullivan
    Hello René,   Thank you very much for your email. I am happy to work with you. I have been working on this all day. I still have not figured out why this is not working. I am Mark Sullivan and Cheri White's Crew Chief/Technical Support for the USA.
    The following products are being used:
    MacBook Pro,Mac OS X Version 10.7.4, Processor 2.8 GHz Intel Core 2 Duo
    Mac iPad, Version 5.1.1 (9B206)
    Non of these prodects will upload your site    http://www.gordonbennett2012.ch/
    I have tried the following browsers:
    Opera: Could not connect to remote server,
    Safari: no responce
    Firefox: The connection has timed out                                                                The server at gordonbennett2012.ch is taking too long to respond.
    Google Chrome: Oops! Google Chrome could not connect to www.gordonbennett2012.ch
    I have had all our crew do the same. They are in different parts of the USA.
    And the response has been the following:
    North Carolina on PC and Android: Site uploaded
    New Mexico on PC and iPhone: Site did not upload on either
    New Mexico on PC and iPhone: Site did upload
    I have also contacted Mac. Please let me know your thoughts so we can sort this out.  In the past I have been able to get your site. Just in the past month I have not been able to. I am getting a timed out error from ALL the above browsers.
    Kind regards,  Letitia
    Ms. Letitia Hill
    TEAM USA/FLY GAS
    PO Box 7186
    Albuquerque, New Mexico 87194 USA
    TEL: 505-270-6759
    FAX: 505-503-8430
    E-Mail: [email protected]
    Website: www.flygas.net
    Begin forwarded message:
    From: René Louis 
    Subject: Website of Gordon Bennett 2012 Date: August 11, 2012 1:25:13 PM MDT
    To: [email protected]
    Dear Letitia  Thank you very much for your message about our website.
    I am also working with a Mac and could not find any problems.  I would be very interested to know which products you are using and what is not working so I could have a detailed look at it.
    Thank you very much.
    Best Regards
    René
    Gordon Bennett 2012 Secretariat / Postfach 280 / CH-9650 Nesslau / Switzerland www.gordonbennett2012.ch  René Louis / Kirchweg 672 / CH-9650 Nesslau / Switzerland

    There seems to be a block with the Internet server in the United States as other Internet and cell servers i.e. Verizon and Century-Link DSL work with Mac, Andriod and PC. It just seems to be Mac on Comcast that is not...
    Without more data I'm inclined to say it's more likely to be Comcast itself, rather than 'Macs on Comcast'.
    For example, do other devices (PCs, Android, iOS) on that Comcast network also have problems connecting? or do they connect fine?
    I'd expect that any device at that network has a problem, which indicates a problem with Comcast. It might be their DNS not resolving properly, or them not routing data correctly, but that should be your focus.
    Perform a DNS lookup on the www.gordonbennett2012.ch hostname. What result do you get? Is it the expected address?
    If that returns the right address, what do you get with a traceroute?
    That will test the routing befween your system and the server, and may indicate other problems on the network.

  • Date Difference between to date formula variable

    Hi Expert,
                    I have create two formula variable one for Document Date and another one for Goods reciept date
    and through formula variable I am subtracting these two formula variable and getting the no. of days between
    document date and GR date.
    This Shows me the correct value for one document date because i am filtering my query according to document
    date,
    while i am giving the date range for document date is shows me incorrect result. bucause document date formula
    variable contains only one date.
    Eg. i am giving the document date range like 01.02.2010 - 28.02.2010.
          In document date formula variable it contains only 01.02..2010 and GR date formula variable it contain correct
    value, thats why the date difference is incorrect because those PO which has PO date like 12.02.2010 for that Doc
    formula variable bring the same date like 01.02.2010.
    Please tell me the solution
    Thanks and Regards
    Lalit Kumar

    Hi Expert,
                     Actually i have created two formula variable on for PO date and another for GR date
    and i've restrict the query through PO date.
    while i am taking the single PO date in Selection parameter it showing me correct difference
    eg: Selection Parameter for PO: 01.01.2010
    But while i am taking the date interval for PO date
    eg: 01.01.2010-30.01.2010
    PO No: XXXXX123 , Doc date: 01.01.2010 GR date: 7.01.2010 then date difference is : 6
    PO No: XXXXX432, Doc date: 03.01.2010 GR date: 8.01.2010 then date difference is : 7 but it is 5
    Thanks and Regards
    Lalit Kumar

  • Get Date Difference between 2 date values as days

    Hi,
    How to get the difference between 2 dates in number of days format. Say if i need the difference between 2012-08-23 and 2012-08-20 as 3
    Please help..

    Hi,
    You can do it in XSLT since the dates are in ISO 8601 format...
    http://www.w3.org/TR/NOTE-datetime
    Here is a sample XSLT...
    <xsl:stylesheet  version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:fn="http://www.w3.org/2005/xpath-functions">
    <xsl:template match="/">
    <xsl:variable name="date1" select="xs:dateTime(/root/date1)"/>
    <xsl:variable name="date2" select="xs:dateTime(/root/date2)"/>
    <xsl:value-of select="fn:days-from-duration($date2 - $date1)"/>
    </xsl:template>
    </xsl:stylesheet>The above XSLT will result *4* for the following input...
    <root>
    <date1>2012-01-11T00:00:00.000-05:00</date1>
    <date2>2012-01-15T00:00:00.000-05:00</date2>
    </root>You can test this example here...
    http://xslttest.appspot.com/
    Hope this helps...
    Cheers,
    Vlad
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts)
    https://forums.oracle.com/forums/ann.jspa?annID=893

  • Data not received in Data target

    Hi,
    I have got the following message on the monitor after I ran an infopackage. I am running an infopackage that loads data from ODS1(Datasource) to ODS2. While I ran the infopackage I have got this message.
    "Data not received in InfoCube / PSA object / InfoObject
    Diagnosis
    Data has not been updated in InfoCube / PSA object / InfoObject . The request is probably still running or there was a short dump.
    Procedure
    In the short dump overview in BW, look for the short dump that belongs to your data request. Make sure the correct date and time are specified in the selection screen.
    You can use the wizard to get to the short dump list, or follow the menu path "Environment -> Short dump -> In Data Warehouse".
    Removing errors
    Follow the instructions in the short dump."
    The status is yellow. After the predifined time it turns into red. On the left hand side of the monitor it shows time and (0 records from 675). I have checked ST22 and there are no short dumps.
    This is all happening at the processing step 'Service API'. Any thoughtfull idea are appreciated with points.

    Hi,
    I have created new infopackage and ran. Now the following message I have got on the monitor.
    "Data not received in PSA Table
    Diagnosis
    Data has not been updated in PSA Table . The request is probably still running or there was a short dump.
    Procedure
    In the short dump overview in BW, look for the short dump that belongs to your data request. Make sure the correct date and time are specified in the selection screen.
    You can use the wizard to get to the short dump list, or follow the menu path "Environment -> Short dump -> In Data Warehouse".
    Removing errors
    Follow the instructions in the short dump."
    Any more thoughts?
    Thanks,
    Rao.

  • Export and import of data not table and data ????

    hii brothers and sister
    plz i have a a quetion about Export and import of data in oracle forms
    i have created 02 boutons one for export his trigger like this :
    eclare
    alrt number;
    v_directory varchar2(200) := 'c:\backup'; --- that if the C Drive not the Drive that the windows had installed in it.
    path varchar2(100):='back_up'
    ||to_char(sysdate,'dd_mm_yyyy-hh24_mi_ss');
    v_exp varchar2(200) := 'exp hamada/hamada2013@orcl file = '
    ||v_directory
    ||'\'
    ||path
    ||'.dmp';
    begin
    host(v_exp);
    alrt:=show_alert('MSG');
    end;
    and the bouton import is like this
    declare
    alrt number ;
    v_ixp varchar2(200) := 'imp userid=hamada/hamada2013@orcl file =c:\backup2\back.dmp full=yes';
    begin
    host(v_ixp);
    alrt:=show_alert('MSG');
    ref_list;
    end;
    i have just one table "phone"
    this code is correct he expot not only the data but also the creation of the table ....for exemple i do export and evry thing is good until now and i find the .dmp in the folder backup .. but when i deleted all data from my app and try to import this .dmp iit show me error it tell me thet the table phone is already created ....
    so plz help wanna just export the data of phone not the creation of table and data ???? or how can i import just the data from this .dmp ??

    Pl post OS and database versions.
    You will likely need to use the IGNORE flag - http://docs.oracle.com/cd/E11882_01/server.112/e22490/original_import.htm#sthref2201
    Imp utility (by default) will try and create the table first. Since the table already exists, imp reports an error. Use the IGNORE flag in your imp command to not report such errors.
    HTH
    Srini

  • Date difference between two dates

    hi All,
    i have to right a stored proc to find the difference between two dates. 
    for example of i give
    startdate as 4/1/2015 and enddate 14/1/2015
    i should get 1 year , 10 days and 0 months .
    i have tried the DateDiff function but it does not calculate the leap year.
    please help.

    DECLARE @from datetime
    DECLARE @to   datetime
    SET @from = '20150104  8:00'
    SET @to   = '20150114  10:30'
    SELECT DATEDIFF(minute,@from, @to) % 60 as Minutes
    SELECT (DATEDIFF(minute,@from, @to) / 60) % 24 as Hours
    SELECT DATEDIFF(minute,@from, @to) / (60 * 24) as Days
    SELECT DATEDIFF(month,@from, @to) as Months
    SELECT DATEDIFF(year,@from, @to) as Year
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • LMS 3.2 - UserTracking (UT) data not up to date

    Hello,
    I use LMS 3.2 with three servers where CS and CM are running on the first server, RME is running on the second one and IPM is running on the third.
    The most switches are 3560-24PS-S or 3560-48PS-S with IOS 12.2(46)SE.
    Since some weeks I have the problem, that the usertracking data is not up to date.
    1. problem:
    end hosts are not discovered by CM. all switches are available for CM and data collection works fine.
    data collection is running one hour before the user tracking major collection. I scheduled three major runs a day and minor acquisition every 60 minutes.
    2. problem:
    there are 56000 entries in the UT database, but only 29000 end hosts have a valid "last seen date". the other 27000 hosts have a date of july 2009. the delete intervall is 60 days after every major update. I don't know why they are in the database. some of them have the state "active".
    How I can clean the UT database safely so I don't have any old entries in it when I start a new discovery?
    One fundamental question: Is it better to use the UT dicovery cycles or to send MAC-notification traps to the CM server?
    I think to send traps could be the better way because on a NAC it works fine, too.
    Thanks for any advise.
    Sven

    If you have a 5000 device license, then Campus will only manage 5500 devices.  No more will be managed after that.  That said, Campus has a recommended limit of 5000 devices total.  If you have a 10K license loaded, Campus will attempt to manage more than that, but such a configuration is not supported.  you would need to reduce the managed device count to 5000 before contacting TAC.  See http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_lan_management_solution/3.2/install/guide1/prereq.html#wp1101012 for details.

  • After updating new MIC in QP02 in Back date not showing current date ?

    Hi Guru,
    I have updated some new MIC and some Changes are made in existing MIC in QP02 on back date. It is showing on same back date with all correction and new MIC but on today's date i.e. current date it is not showing in the system.
    any can help me how to get in current date ?
    There are some dump error , for these correction i have updated SNOTE 1467234 and 1471534 in Quality server, but no more effect.
    Thanks,
    Piyush Patel

    hi,Premji,
    I have updated existing QP in back date i.e. same as when created original date ( expiration date is long i.e. 31.12.9999) , then same thing i wanted to see all updated MIC should be reflect in current date, but it is not coming, so i have updated SNOTE- 1467234 and 1471534 then tried it.It is working fine some how but not as i want.Hence i thing it is solved my problem.
    Thanks to you and Mr. Craig for your more suggestion/guidance.
    Piyush Patel

  • The big "Why was this one not rated" topic.

    Hello cafe members,
    While surfing the NetPro forums I got an idea for a new topic. See title.
    To make one thing clear:
    It is not my intension to get ratings here instead of on the regular forum.
    Please do not rate any post in this thread.
    When users choose not to rate, thats how it is. It happens to all of us.
    The point is that I am seeing so many obviously correct answers remaining unrewarded that I thought it might be a good idea to post some of them here to at least have a good laugh about them, share your frustration or perhaps have an interesting discussion about why the invested time was not recognized.
    It could also be used to track notorious non-raters.
    This topic is posted here becasuse this corner tends to be avoided by the novices and especially the notorious USERS who only come to get their info and hardly bother to at least say Thnx.
    I will post the first reply as an example of how I have imagined this. Have fun
    Thnx4notrating
    Leo

    Hey Dan,
    Thanks for verifying our suspicions here my friend!
    I know the "Facebook" area of the Forums is not your baby,
    but maybe you could pass this along
    This seems like a very flawed design. I reviewed 20 threads that were started
    via Facebook and not a single one had any ratings given to the answers in
    response to the OP. One poster was kind enough to at least say thanks but
    obviously the mechanism to push them back to CSC and award any points
    or mark the question as answered must be pretty cryptic...hahahahaha!
    Why not push these users over to CSC to post their questions? I know
    it's probably not as pretty as Facebook....but really, why would anyone even
    try to answer these questions? I'm guessing that these users aren't registered as CSC
    users so even if they made it back over to CSC they couldn't rate anyways??
    I know it's not all about ratings, but the questions coming over via the Webuser/Facebook
    interface never lead to any successful conclusion. They seem pretty pointless to me but
    that's just my 2 cent$
    Cheers!
    Huff

  • Date Difference between two dates which is in String format - Urgent

    Hi,
    My requirement is
    String s1 = "04/24/2008" ; // in "mm/dd/yyyy" format
    String s2 = "08/30/2010" ; // in "mm/dd/yyyy" format
    Now i want to calculate the number of days between the two Strings(Dates).It's urgent.Please help me.

    A late entry:
    If you want to turn a String into a Date, use SimpleDateFormat.
    [Calculating Java dates: Take the time to learn how to create and use dates|http://www.javaworld.com/jw-12-2000/jw-1229-dates.html]
    [Formatting a Date Using a Custom Format|http://www.javaalmanac.com/egs/java.text/FormatDate.html]
    [Parsing a Date Using a Custom Format|http://www.javaalmanac.com/egs/java.text/ParseDate.html]

Maybe you are looking for

  • How do I save 2 iphoto libraries onto one external drive?

    Hi I have an iphoto library on my MacBook Pro and I have an older library of different photos on my graphite iBook. I'd like to store all my photos onto one external drive. How can I do this without losing either library in the process? I actually ha

  • TS2481 Outlook 2007 Calendar will no longer sync with iPhone 4S.

    Outlook 2007 has synced perfectly with my iPhone 4s for over a year but suddenly the calendar will not sync while contacts does. Microsoft says it is either the itunes (have uninstalled & reinstalled twice) or a problem with the pst file. Any solutio

  • Having trouble with quicktime. Help please.

    A while ago, maybe a few months actually. My quicktime stopped working so i uninstalled it and installed it again. Now whenever I go to a website where I need quicktime to see videos, I only hear the audio (e.g Apple websites, guided tour videos, aud

  • Processing Obselete executed before deadline is reached

    Hi Experts, I have used a modelled latest end deadline for one day where the processing obselete is activated. In the modelled outcome , i have a process control that will set the main workitem to obselete and  execute the new workitem in the process

  • Installing a Add On for Lightroom

    I can't access my Lightroom presets in light room. I purchased the add ons and can't seem to install it. I used the extension manager and both presets are acquired but I can't figure out why I can't see them in Lightroom. Please Help.