Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Help with date calculation
Djordje,
I was pretty sure about the first one but I am not
sure whether this is correct.
Can someone help mw with this date calculation.
Really appreciate your help.
Thanks
Problem
All records where sydate - bdate > 20 minutes
bdate is stored in seconds from 1970..
select * from timetable
where
(sysdate-20/1440)-to_date('01-JAN-1970','DD-MON-YYYY')+bdate(24*60*60)>20);