I want to get dates between 2 times like this:
SELECT *
FROM `test`
WHERE hour(tm) BETWEEN 20 and 8;
columne tm is Time type.
In my Test table i have next valuse in tm columne:
10:00:00
08:00:00
15:00:00
20:00:00
21:00:00
Code does not work. Any ideas? Thanks!