Didi Chuxing's Product Growth team wants to evaluate how consistently new riders return after completing their first ride. Given a target month, calculate weekly retention for users whose first completed ride occurred during that month.
Use January 2025 as the target month for the supplied data. A retention week is the number of calendar weeks elapsed since the user's cohort week, where weeks begin on Monday. Count a user once per retention week even if they complete multiple rides during that week.
cohort_week, retention_week, retained_users, cohort_users, and retention_rate.cohort_week, then retention_week ascending.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique Didi Chuxing rider identifier |
| city | VARCHAR(80) | Primary operating city for the rider |
| Column | Type | Description |
|---|---|---|
| ride_idPK | INT | Unique ride identifier |
| user_id | INT | Rider who requested the ride |
| completed_at | TIMESTAMP | Ride event timestamp |
| ride_status | VARCHAR(20) | Ride lifecycle status |