Your question is Rolling Retention Rates by Cohort. 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.
The OpenAI ChatGPT analytics team wants to compare engagement across user signup cohorts. Write a PostgreSQL query that measures activity during each user's first ninety days after signup.
signup_date cohort.| Column | Type | Description |
|---|---|---|
| user_idPK | INTEGER | Unique user identifier |
| signup_date | DATE | Date the user signed up |
| Column | Type | Description |
|---|---|---|
| activity_idPK | INTEGER | Unique activity record |
| user_id | INTEGER | User associated with the activity |
| activity_date | DATE | Date of the activity |