Your question is Cohort Retention From Driving Frequency. 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.
Arity wants to understand whether driving frequency is associated with driver retention. Write a PostgreSQL query using completed trips to assign each driver to a first-trip cohort and a driving-frequency segment.
Frequent, and others as Occasional.| Column | Type | Description |
|---|---|---|
| driver_idPK | INT | Unique Arity driver identifier |
| driver_name | VARCHAR(100) | Driver display name |
| signup_date | DATE | Date the driver joined Arity |
| Column | Type | Description |
|---|---|---|
| trip_idPK | INT | Unique trip identifier |
| driver_id | INT | Driver associated with the trip |
| trip_date | DATE | Calendar date of the trip |
| trip_status | VARCHAR(20) | Trip lifecycle status |