sqloracle-databasetimestamporacle11g

Select all Rows with "Now minus 30 minutes" in Oracle SQL (11g)


How do I express "now minus 30 minutes" in an Oracle SQL WHERE, so that I can compare it with a stored timestamp?


Solution

  • The solution is either the dateadd() function or

    systimestamp - INTERVAL '30' minute(1)