Your question is SQL Funnel Path Query. Start with the requirements and the two tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Uber's rider analytics team wants to understand how riders progress through the request funnel. Write a PostgreSQL query that identifies the most common observed path across five Uber ride steps during January 2025.
STRING_AGG, preserving repeated events and ordering ties by event_id.| Column | Type | Description |
|---|---|---|
| rider_idPK | INTEGER | Unique rider identifier |
| rider_name | VARCHAR(100) | Rider display name |
| city | VARCHAR(80) | Rider's operating city |
| Column | Type | Description |
|---|---|---|
| event_idPK | INTEGER | Unique funnel event identifier |
| rider_id | INTEGER | References riders.rider_id |
| event_name | VARCHAR(40) | Observed funnel step |
| event_time | TIMESTAMP | Timestamp when the event occurred |