Write a SQL query to calculate the percentage of users retained after 30 days.
Treat a user as retained when they have at least one activity exactly 30 days after signup. Exclude users with a NULL signup date from the calculation.
retained_percentage.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| signup_date | DATE | Date the user signed up |
| platform | VARCHAR(20) | Primary platform used by the user |
| Column | Type | Description |
|---|---|---|
| activity_idPK | INT | Unique activity identifier |
| user_id | INT | User associated with the activity |
| activity_date | DATE | Date the activity occurred |
| activity_type | VARCHAR(30) | Type of user activity |