Write a query to calculate the month-over-month growth rate of active listings on the PriceLabs platform.
Use the provided listing and status history data. Treat a listing as active for a month when its latest status event through that month's end is active.
month_start, active_listings, and growth_rate_pct.month_start ascending.| Column | Type | Description |
|---|---|---|
| listing_idPK | INT | Unique PriceLabs listing identifier |
| listing_name | VARCHAR(100) | Listing display name |
| region | VARCHAR(80) | Listing market or region |
| Column | Type | Description |
|---|---|---|
| status_event_idPK | INT | Unique status event identifier |
| listing_id | INT | Referenced listing identifier |
| status | VARCHAR(20) | Status recorded by the event |
| effective_at | TIMESTAMP | Timestamp when the status became effective |