Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Problem with query with dates in where clause

Problem with query with dates in where clause

From: B Siva Shankar <bsshankar_at_chennai.tcs.co.in>
Date: Mon, 19 Jun 2000 12:45:42 +0530
Message-Id: <10533.109676@fatcity.com>


Hi List,

We have problems in queries which have dates in where clause.

Select * from Emp
where hiredate = sysdate;

Select * from Emp
where hiredate = '19-JUN-00';

The above two queries are not returning any records even though there are some records in the table satisfying the criteria.

Can someone explain why it is so. We don't want to use to_char while comparing.

Thanks in advance, Received on Mon Jun 19 2000 - 02:15:42 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US