Your question is 7-Day Retention by Integration Signup. Start with the requirements and the three 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.
Asana’s growth team wants to measure whether users acquired through a specific third-party integration come back one week after signup. Write a SQL query to calculate the 7-day retention rate for users who signed up through the Slack integration.
Slack integration.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| signup_ts | TIMESTAMP | Timestamp when the user signed up for Asana |
| workspace_id | INT | Workspace joined at signup |
| Column | Type | Description |
|---|---|---|
| signup_idPK | INT | Unique integration signup record |
| user_id | INT | User associated with the integration signup |
| integration_name | VARCHAR(50) | Integration credited for acquisition |
| connected_ts | TIMESTAMP | Timestamp when the integration was connected |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique event identifier |
| user_id | INT | User who performed the event |
| event_name | VARCHAR(50) | Name of the user activity event |
| event_ts | TIMESTAMP | Timestamp when the event occurred |