I'm attempting to to get all conflicting time schedules from an SQL database similar to this:
SELECT * FROM schedule WHERE x BETWEEN startTime AND endTime
Where x is any time given in a timestamp.
The issue lies with the fact that if I have say a schedule from 1:00 PM to 2:00 PM and then I attempt to use x = 2:00 PM and startTime = 2:00 PM I get a return from my statement execution.
Is there a flag or something similar that allows a non-inclusive BETWEEN call?