Hi all,
I guess this is a simple thing to do, but I am having trouble.
I want to do the following in a SQL statement in Oracle.
1. Select * from tbl_blah where
AUDIT_TIMESTAMP < (sysdate - x days)
2. Select * from tbl_blah where
AUDIT_TIMESTAMP < (sysdate - x months)
3. Select * from tbl_blah where
AUDIT_TIMESTAMP < (sysdate - x years)
Any help appreciated.
Regards,
kloner
I guess this is a simple thing to do, but I am having trouble.
I want to do the following in a SQL statement in Oracle.
1. Select * from tbl_blah where
AUDIT_TIMESTAMP < (sysdate - x days)
2. Select * from tbl_blah where
AUDIT_TIMESTAMP < (sysdate - x months)
3. Select * from tbl_blah where
AUDIT_TIMESTAMP < (sysdate - x years)
Any help appreciated.
Regards,
kloner