Operations wants to check that the delivery time ClearBite promises grows with distance. For each promised delivery time, summarise the trip distances.
Return promised_minutes, deliveries (the count), avg_km (average distance_km rounded to 1 decimal place), min_km and max_km.
Ctrl/⌘ + Enter runs the query. Table and column names are suggested as you type. Press Esc then Tab to leave the editor with the keyboard.
Expected output (9 rows)
Expected output
promised_minutes
deliveries
avg_km
min_km
max_km
60
28
12.0
11.7
12.0
40
895
5.8
4.9
8.1
30
3526
2.8
1.5
4.8
35
2282
4.2
3.2
6.4
45
350
7.4
6.5
9.8
50
127
9.2
8.2
11.2
25
1716
2.1
0.8
3.1
20
185
1.2
0.8
1.4
55
64
10.8
9.9
12.0
Row order doesn’t matter for this question. Numbers are compared with a tiny tolerance; text must match exactly.
Stuck?
Stored on this device only. Your latest query and “solved” status are remembered in this browser only. They don’t sync between devices, and clearing your browser data removes them.