Skip to content

Commit 1518f1f

Browse files
authored
Update calculate-orders-within-each-interval.sql
1 parent c9faa4c commit 1518f1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Time: O(nlogn)
22
# Space: O(n)
33

4-
SELECT CEIL(minute/6) AS interval_no, SUM(order_count) AS total_orders
4+
SELECT CEIL(minute / 6) AS interval_no, SUM(order_count) AS total_orders
55
FROM Orders
66
GROUP BY 1
77
ORDER BY 1;

0 commit comments

Comments
 (0)