Say i want to make two queries for each shift to pull records for orders completed from the time the shift start till their shift ends.
1st shift
select date from table
having orders.complete
where completetime between 5:00 AM and 3:29 PM
2nd shift
select date from table
having orders.complete
where completetime between 3:30 PM and 4:59 AM
How would i do this?