I am looking for a where clause that can be used to retrieve records for the last 24 hours?
where
in postgres, assuming your field type is a timestamp:
select * from table where date_field > (now() - interval '24 hour');