I am running a query to capture data in the last 48 hours and wonder if someone can shed some lights for me on this:
This is part of the query....
SELECT FIELD1 FROM TABLE1 WHERE ADD_DATE > SYSDATE-2
The query runs every day at 7:00 PM. For example, when it runs at 7:00 PM today, I want to capture data (ADD_DATE) from 6:59:59 PM of today (June 26) back to 6:59:59 PM data of June 24 which is 48 hours ago.
The above statement does not seem to pull every thing which I need.
Please help....
This is part of the query....
SELECT FIELD1 FROM TABLE1 WHERE ADD_DATE > SYSDATE-2
The query runs every day at 7:00 PM. For example, when it runs at 7:00 PM today, I want to capture data (ADD_DATE) from 6:59:59 PM of today (June 26) back to 6:59:59 PM data of June 24 which is 48 hours ago.
The above statement does not seem to pull every thing which I need.
Please help....