I am looking for a where clause that can be used to retrieve records for the last 24 hours?
where
In SQL Server (For last 24 hours):
SELECT * FROM mytable WHERE order_date > DateAdd(DAY, -1, GETDATE()) and order_date<=GETDATE()