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!

SYSDATE evaluation in Where Clause - Help

712780Jul 22 2009 — edited Jul 22 2009
v1 is type date
v2 is type date

I'm trying to use a comparison of v1 or v2 with (select sysdate from dual) in the clause area of my select statement.

eg.,
Select yada...yada ..

from table-1 inner join table-2
on table-1.owner = table-2.owner
where something
and something else
and v1 = (select sysdate from dual)
or v2 = (select sysdate from dual)

and it won't work. No errors, just no data and I have some records with today's sysdate in v1 and some in v2 but not both.

Edited by: user8625304 on Jul 22, 2009 11:59 AM
This post has been answered by Toon Koppelaars on Jul 22 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 19 2009
Added on Jul 22 2009
5 comments
4,986 views