Your question is SQL Weekly Cohort Retention. 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.
PayPal’s Product Growth team wants to measure how consistently newly registered users return after signup. Write a PostgreSQL query that calculates weekly retention for PayPal users who signed up during January 2025.
signup_date.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique PayPal user identifier |
| VARCHAR(255) | User email address | |
| signup_date | DATE | Date the user registered |
| Column | Type | Description |
|---|---|---|
| activity_idPK | INT | Unique activity record identifier |
| user_id | INT | User associated with the activity |
| activity_date | DATE | Date of user activity |
| activity_type | VARCHAR(50) | Type of PayPal activity |