How would you analyze client retention over time using SQL for TaskRabbit?
Use completed TaskRabbit tasks to identify each client's first active month and measure whether that client completed tasks again in later months.
cohort_month, activity_month, cohort_size, active_clients, and retention_rate.cohort_month, then activity_month, both ascending.| Column | Type | Description |
|---|---|---|
| client_idPK | INT | Unique TaskRabbit client identifier |
| client_name | VARCHAR(100) | Client display name |
| Column | Type | Description |
|---|---|---|
| task_idPK | INT | Unique task identifier |
| client_id | INT | Client who requested the task |
| status | VARCHAR(30) | Current task status |
| completed_at | TIMESTAMP | Timestamp when the task was completed |