I have a three column startTime and EndTime as a Time datatype and amount as a int. I want to compare time if 10:00:00 is in between startTime and Endtime it should return the amount in that range
My startTime is 08:00:00 and endTime is 14:00:00
I tried
SELECT amount
from table
where startTime >='10:00:00'
AND endTime <='10:00:00'
But it does not work I even tried CAST as time, it did not work too.
I tried looking at other post but none of suggested solution worked.