Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

querying using sysdate problem

609621Dec 1 2009 — edited Dec 1 2009
Dear all,


When am selecting from a table by directly mentioning the date like below :


SQL> select count(*) from do_calls where tdate=sysdate;

COUNT(*)
----------
0

SQL> select sysdate from dual;

SYSDATE
-----------
01-DEC-2009


SQL> select count(*) from do_calls where tdate='01-dec-2009';

COUNT(*)
----------
124

tdate is a date column...

Why is that it is not returning values when implicitly mentioning the system date.

Please guide

Kai
This post has been answered by Avinash Tripathi on Dec 1 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 29 2009
Added on Dec 1 2009
4 comments
249 views