I have the following table. I would like to make a SELECT of only the rows where the hour 11:35 is between starthour and endhour.
TABLE NAME USER
id, name, starthour(DATE), endhour(DATE)
1, "mariano", 10:35:00, 13:00:00
2, "patrick", 17:35:00, 19:00:00
3, "gloria", 21:22:00, 22:00:00
4, "david", 22:29:00, 23:33:00
If tried doing the following SELECT.
SELECT id, name, starthour, endhour FROM user WHERE (11:59 BETWEEN starthour AND endhour);