Is it possible to put relative/static date and time in SQL?
I want to get results from yesterday and the day before after.
so lets say date between (current_date-2 06:00:00) and (current_date-1 06:00:00). To get the results from 24h range but with specific hour.
Since I’m using it for BI tool, only plain SQL is acceptable.
You may use
6/24 means six hours, because in Oracle 1 is a day.