My table
ID StartTime EndTime
1 09:00:00 10:00:00
2 10:30:00 11:00:00
3 14:30:00 16:00:00
How to check the if passed date ranges fall in between the Start and End Times…like when i say, if starttime is 09:24:00 and endtime is 09:56:00? it should return Id value of 1
Can you some please help me with this?
Use BETWEEN if a value is
betweentwo other values. Note that BETWEEN comparison includes the borders.Of course don’t forget to
if it it isn’t of the type
TIME.To check for a range: