I want to retrieve the data from an Oracle datetime column from
26/03/2024 11:00:00. AM +00:00
to
27/03/2024 03:00:00. AM +00:00
as one day record for 26/03/2024 using sysdate.
Can you please help me to write the SQL query in Oracle to search by date and time?
I want get the results what ever sold detail current date 11 am until next date 3 am as one record.
Expected results:
Example:


Use some date math. If you subtract 3 hours and 1 second from your TRANSACTION_DATE you will fit the data into same day.