Founding rate: RM5 off Basic, forever — applied automatically. See pricing
Grab's regional ops team wants to know which city is most under-supplied with drivers, hour by hour, on 12 Jan 2026. You have two tables — ride requests and driver shifts — and no pre-joined view. Five sequential steps: count demand, count supply, combine them into a stretch ratio, find each city's worst hour with a window function, then name the single city to staff first.
Schema
| request_id | SERIAL |
| city_id | TEXT |
| requested_at | TIMESTAMP |
| shift_id | SERIAL |
| driver_id | INT |
| city_id | TEXT |
| shift_start | TIMESTAMP |
| shift_end | TIMESTAMP |
5 steps
Basic
Multi-step case rounds — several questions on one shared dataset — unlock with a Basic plan.
RM 25/mo · cancel anytime
Company names are trademarks of their respective owners, used here only to describe practice material. mahir_data is not affiliated with, endorsed by, or sponsored by any company named on this site. Terms.