Write a SQL query to find the monthly retention rate of customers acquired through organic search.
Use customer activity after acquisition and report cohorts through June 2024. Treat a customer as retained in a month if they have at least one activity event during that month.
cohort_month, months_since_acquisition, cohort_size, and retention_rate.cohort_month and months_since_acquisition.| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| acquired_at | TIMESTAMP | Customer acquisition timestamp |
| acquisition_channel | VARCHAR(50) | Marketing channel credited with acquisition |
| Column | Type | Description |
|---|---|---|
| activity_idPK | INT | Unique activity event identifier |
| customer_id | INT | Customer associated with the activity |
| activity_at | TIMESTAMP | Timestamp of customer activity |
| activity_type | VARCHAR(50) | Type of customer activity |