Write a SQL query to find the rolling 30-day average of call center volumes partitioned by region.
Use the call_center_daily_volumes table. Treat each window as inclusive of the current date and the preceding 29 calendar days. Exclude NULL volumes from the average, and do not treat missing dates as zero.
region, volume_date, daily_volume, and rolling_30_day_avg.region, then volume_date ascending.| Column | Type | Description |
|---|---|---|
| volume_idPK | INT | Unique call volume record identifier |
| region | VARCHAR(50) | Call center operating region |
| volume_date | DATE | Date on which the calls were recorded |
| call_volume | INT | Number of calls recorded for the region and date |