Instagram's Product Growth team wants to monitor engagement among the Creators user segment. Write a PostgreSQL query for February 1 through February 5, 2025 that calculates daily active Creators and their day-over-day growth.
LAG to compare each day's active-user count with the previous calendar day.NULL when there is no prior day or the prior day's count is zero.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Instagram user identifier |
| segment | VARCHAR(50) | Growth segment assigned to the user |
| Column | Type | Description |
|---|---|---|
| activity_idPK | INT | Unique activity record identifier |
| user_id | INT | User who generated the activity |
| activity_date | DATE | Calendar date of the activity |