Home » SQL & PL/SQL » SQL & PL/SQL » Date function
Date function [message #18816] Fri, 15 February 2002 08:36 Go to next message
Bill S
Messages: 2
Registered: February 2002
Junior Member
I need to select data based on a date minus 2 hours.
Something like this:
select *
from table1
where date1 < sysdate - [[2 hours]];
Is there an easy wat to do this?

Thanks,
Bill
Oracle 8i
Re: Date function [message #18817 is a reply to message #18816] Fri, 15 February 2002 09:12 Go to previous messageGo to next message
Suresh Vemulapalli
Messages: 624
Registered: August 2000
Senior Member
select *
from table1
where date1 < sysdate - 1/12;
Thanks! [message #18819 is a reply to message #18816] Fri, 15 February 2002 10:14 Go to previous message
Bill S
Messages: 2
Registered: February 2002
Junior Member
(nt)
Previous Topic: PL/SQL SYSTEM FUNCTION
Next Topic: Passing a parameter list for IN clause in cursor.
Goto Forum:
  


Current Time: Fri Apr 19 19:52:51 CDT 2024