Write a query to find the monthly active users (MAU) who completed a specific transaction sequence within a 30-day window at Intuit Management Consultancy.
Assume the sequence is initiated, followed by approved, followed by completed for the same transaction. The completion must occur no more than 30 days after initiation, and MAU is based on the completion month.
activity_month, formatted as YYYY-MM, and mau, the distinct qualifying user countactivity_month ascending| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique event identifier |
| user_id | VARCHAR(20) | User associated with the event |
| transaction_id | VARCHAR(20) | Transaction associated with the event |
| event_type | VARCHAR(20) | Transaction lifecycle event |
| event_at | TIMESTAMP | Timestamp when the event occurred |