I'm using Rails 6.0.2 and MySQl version 5.7.
On the camera_events table I have a start_time and an end_time column that are both time datatypes as I do not need the date, i just need to know when the event starts and when it ends.
I am trying to query the table to get all the events that fall BETWEEN the start_time and end_time. the problem is that any event that has it's time span across midnight or has it end_time set to midnight as it is recorded in the database as 00:00.
My issue is trying to find any events that fall between a certain time like 22:00 and 02:00.