I am using ActiveRecord / RoR.
My table looks like this:
id (int), start_time(time), end_time(time), ... 1, 20:00, 23:00 2, 20:00, 23:00 3, 16:00, 20:00 4, 16:00, 23:00 5, 20:00, 22:00 6, 16:00, 20:00
I need to return records with a combination of the excellent combination start_time
+ end_time
.
source share