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!

SELECT STATEMENT TO RETRIEVE RECORDS FOR 3 YEARS

3863Jul 23 2002
I am writting a select statement to retrieve information from PO_Vendors Table
where the vendors are Trade.
I need this information for the last 3 years and this is the way I am writting
my statement but it's not giving me anything. Where I am going wrong?



select * from PO_vendors
where PAY_GROUP_LOOKUP_CODE ='TRADE'
and SYSDATE BETWEEN TO_DATE('01/01/99 00:00:00','mm/dd/yy hh24:mi:ss') AND
TO_DATE('12/31/00 23:59:59','mm/dd/yy hh24:mi:ss');

Please Help
Lilee
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 22 2002
Added on Jul 23 2002
10 comments
2,372 views