Skip to content
Advertisement

SQL Statement // between with datetime

I have following query:

The result of the query is:

Normally it should only return Screen 3 and not the other two, because the ScheduleDate of the two is in the time span.

The result should be:

Advertisement

Answer

I suspect you really want:

This will return the screens that have no schedule date between those times.

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