Skip to content
Advertisement

Limit date for each day to 2:30 PM

SQL Oracle Query:

I have datetime values in 30 minute intervals. I want to stop each day at 2:30 PM.

I am limiting my hours with this:

This gives me data from 8 AM to 3 PM. I need to only have data through 2:30.
Please show me how to do this better.

Advertisement

Answer

Plain Standard SQL, but Oracle chokes on DATEs.

TIMESTAMP datatype:

DATE datatype:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement