CEIL function to calculate the interval number for each minute by dividing the minute by 6 and taking the ceiling of the result.order_count for each group to get the total orders for each interval.interval_no in ascending order.
erDiagram
Orders {
int minute PK
int order_count
}