Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Dates
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
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Fri Jun 25 2004 - 10:34:55 CDT