Skip to content
Advertisement

Filtering of records between sysdate and sysdate+7 from Oracle Sql is not working correctly

I am firing an SQL query to filter records between sysdate and sysdate+7 but I am getting records outside the range as well. What is wrong my SQL

I even tried a between function

But all of them giving results outside the range . What is the issue here?

Advertisement

Answer

You are filtering on c.ets.

You are selecting sc.effective_timestamp.

I suspect that you are confused about the dates. If you filter on the same column you are selecting, then you should not see out-of-range dates.

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