Hi all, I am trying to write a SQL statement that will return results that fall into a cewrtain time frame.
The problem is if I have times such as 10PM and 4AM, the result will be 4AM to 10PM, which is not what I want. Any idea how to fix this
something like this will not work if the time1 is 10PM and time2 is 4AM
Select * from meetings where time_ between time 1 and time2
will get me the meetings happened between 4AM and 10PM, same result with "<" or ">" searches too.
The problem is if I have times such as 10PM and 4AM, the result will be 4AM to 10PM, which is not what I want. Any idea how to fix this
something like this will not work if the time1 is 10PM and time2 is 4AM
Select * from meetings where time_ between time 1 and time2
will get me the meetings happened between 4AM and 10PM, same result with "<" or ">" searches too.