Write a SQL query to calculate a 7-day rolling average of campaign conversions.
Use campaign_conversions as the source table. Treat NULL conversion values as zero, aggregate multiple records for the same campaign and date, and calculate the average across the current date and preceding six calendar days.
campaign_name, conversion_date, daily_conversions, rolling_7_day_avg| Column | Type | Description |
|---|---|---|
| conversion_idPK | INT | Unique conversion record identifier |
| campaign_name | VARCHAR(100) | Campaign associated with the conversion |
| conversion_date | DATE | Date of the conversion record |
| conversions | INT | Number of conversions recorded |