Your question is Retention Rate SQL 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.
Remitly wants to measure how consistently newly registered customers complete transfers after signup. Write a PostgreSQL query to calculate monthly retention for the January 2024 signup cohort.
2024-01-01 through 2024-01-31 as the cohort.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique Remitly customer identifier |
| signup_date | DATE | Date the customer registered |
| country_code | VARCHAR(2) | Customer registration country |
| Column | Type | Description |
|---|---|---|
| transfer_idPK | INT | Unique transfer identifier |
| user_id | INT | Customer who initiated the transfer |
| completed_at | TIMESTAMP | Transfer completion timestamp |
| channel | VARCHAR(20) | Transfer initiation channel |