How would you write a query to compare carrier acceptance rates across regions and time periods?
Treat an offer with status accepted or rejected as a decided offer. Exclude offers with a missing status or region. Use calendar months as the time period.
region_name, period_month, total_offers, accepted_offers, acceptance_rate, and region_rank.| Column | Type | Description |
|---|---|---|
| region_idPK | INT | Unique region identifier |
| region_name | VARCHAR(50) | Operational region name |
| Column | Type | Description |
|---|---|---|
| offer_idPK | INT | Unique offer identifier |
| carrier_id | VARCHAR(20) | Carrier receiving the offer |
| region_id | INT | Region associated with the offer |
| offered_at | TIMESTAMP | Timestamp when the offer was sent |
| status | VARCHAR(20) | Offer decision, such as accepted or rejected |