Query to retrieve previous day data
888905Jun 13 2012 — edited Jun 15 2012Hi,
I would like to have a query which should fetch previous day records from column which is having timestamp data type.
select mdn from user_table where updatetimestamp > trunc(sysdate) - INTErVAL '24' HOUR;
But this gives output not for previous day, but all records which are 24 hrs less than current day. Any suggestion on how to get records for previous day based on column having timestamp data type.
Thank you in advance.
Cheers,
Suddublr