Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> query last n hours / minutes

query last n hours / minutes

From: Harry <harryooopotter_at_hotmail.co_>
Date: Fri, 29 Jul 2005 05:24:11 GMT
Message-ID: <%3jGe.158209$9A2.779@edtnps89>


I have an Oracle 9 table with a field performed_date.

Select * from my_table
where performed_date > (sysdate - 8);

This will return all records with performed_date within last week.

What is the query for "last 4 hours"?

What is the query for "last 30 minutes"?

TIA Received on Fri Jul 29 2005 - 00:24:11 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US