How would you use SQL to calculate a 7-day rolling average of daily conversions?
Assume the daily_conversions table contains one row per calendar date. Treat a NULL conversion count as zero and return all available dates.
conversion_date, daily_conversions, and rolling_7_day_avgconversion_date ascending| Column | Type | Description |
|---|---|---|
| conversion_datePK | DATE | Calendar date for the daily conversion count |
| conversions | INT | Number of conversions recorded on the date |