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!

Problem with where clause and date condition

40178Oct 31 2001
I have a table with a date field and need to know if the last
date I inserted in the table where 20 minutes ago or more. My
query is something like:
select d from t where (d + (20/1440)) < sysdate
but it doesn't work!!, sysdate="2001-10-31 9:15 AM", d="2001-10-
31 9:13 AM", the result is the same as:
select d from t where d < sysdate
Does anybody can help me? is it valid to use date arithmetic in
the where clause? is it a bug?

Thank you
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 29 2001
Added on Oct 31 2001
5 comments
474 views