I have a table with the field ENTERED_ON
(with both date and time value). I want to write a query that return records that have ENTERED_ON
value that is past 2 hours comparing to current date time.
For example, if entered_on is 2014-05-06 11:00AM
, and currently it's 2014-05-06 2:00PM
, I would like to return all records that past the 2 hours when comparing to current date time.