Write a SQL query to calculate a rolling 30-day average of patient admissions.
Use the dated records in patient_admissions and include calendar days with no admissions in the average. Return results for the full date range represented by the valid admission dates.
admission_date, daily_admissions, and rolling_30_day_average.admission_date ascending.| Column | Type | Description |
|---|---|---|
| admission_idPK | INT | Unique identifier for the admission |
| patient_id | INT | Identifier of the admitted patient |
| admission_date | DATE | Date on which the admission occurred |