Dates

  • From: "Oracle" <oracle_list@xxxxxxxxxxx>
  • To: <oracle-l@xxxxxxxxxxxxx>
  • Date: Fri, 25 Jun 2004 16:35:49 +0100

Hi

Can any please explain the reason for the differing results in the folowing
queries

1)
SELECT NCSN, NC_DATE_CLS FROM NONCONFORM WHERE NC_DATE_CLS LIKE '25-JUN-04'


     NCSN NC_DATE_CLS
--------- ---------
     3298 25-JUN-04
     3299 25-JUN-04

2)
SELECT NCSN, NC_DATE_CLS FROM NONCONFORM WHERE NC_DATE_CLS =  '25-JUN-04'

no rows selected


3)
SELECT NCSN, NC_DATE_CLS FROM NONCONFORM WHERE NC_DATE_CLS between
'25-JUN-04' AND '25-JUN-04';

no rows selected

4)
SELECT NCSN, NC_DATE_CLS FROM NONCONFORM WHERE NC_DATE_CLS between
'24-JUN-04' AND '26-JUN-04'

     NCSN NC_DATE_CLS
--------- ---------
     3298 25-JUN-04
     3299 25-JUN-04


Table nonconform....columns....NCSN NUMBER, NC_DATE_CLS DATE......
Oracle 8.1.7

Thanks
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

Other related posts: