Write a query to find the monthly active users who signed up via a specific marketing campaign.
Use the users, campaigns, and activity_events tables. For this exercise, the campaign is Copilot Launch, and an active user has at least one recorded activity event during the month.
activity_month and monthly_active_users.Copilot Launch; count each user once per month.activity_month.| Column | Type | Description |
|---|---|---|
| campaign_idPK | INT | Unique campaign identifier |
| campaign_name | VARCHAR(100) | Marketing campaign name |
| channel | VARCHAR(50) | Primary acquisition channel |
| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique GitHub user identifier |
| VARCHAR(255) | User email address | |
| signup_date | DATE | Date the user signed up |
| campaign_id | INT | Campaign attributed to the signup |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique activity event identifier |
| user_id | INT | User who generated the event |
| activity_at | TIMESTAMP | Timestamp when the activity occurred |
| event_type | VARCHAR(50) | Type of product activity |