Write a SQL query to identify users whose engagement increased month over month for three consecutive months.
Assume three consecutive increases require four consecutive calendar months. Missing months and NULL engagement values do not count as increases. Return only each user's earliest qualifying period.
user_id, user_name, start_month, end_month, starting_engagement, ending_engagementuser_id ascending| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| user_name | VARCHAR(100) | Display name of the user |
| Column | Type | Description |
|---|---|---|
| user_idPK | INT | User associated with the monthly record |
| engagement_monthPK | DATE | First calendar day of the engagement month |
| engagement_score | INT | Monthly engagement measurement |