Write a SQL query to calculate the month-over-month retention rate of users who completed an insurance quote on Insurify.
Use the provided users and quote_events tables. Treat a user as active in a month if they have at least one quote event with status completed in that calendar month.
month, prior_month_users, retained_users, and retention_ratemonth ascending| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique Insurify user identifier |
| VARCHAR(255) | User email address |
| Column | Type | Description |
|---|---|---|
| quote_event_idPK | INT | Unique quote event identifier |
| user_id | INT | User associated with the quote event |
| status | VARCHAR(30) | Quote event status |
| completed_at | TIMESTAMP | Timestamp when the quote was completed |