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!

Less than date Query

user7988Jun 3 2014 — edited Jun 5 2014


Less than date Query.

How to get the query out put if Even if one V_Date is less than the Admission_date the query should show all the data.

id   V_date  Admission_date
101  4/1/2001 5/1/2001
102  4/1/2001 5/1/2001
103  4/1/2001 5/1/2001
104  4/1/2001 5/1/2001
105  4/1/2001 5/1/2001
106  6/1/2001 5/1/2001

Even if one V_Date is less than the Admission date the query should pick up all the data.

select * from X where V_DATE < Admission_Date gives only

101  4/1/2001 5/1/2001
102  4/1/2001 5/1/2001
103  4/1/2001 5/1/2001
104  4/1/2001 5/1/2001
105  4/1/2001 5/1/2001

Still missing 106.

Thank you..

This post has been answered by Frank Kulash on Jun 5 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2014
Added on Jun 3 2014
8 comments
8,695 views