United Auto Credit wants a daily view of loan application volume across active dealerships. Write a PostgreSQL query that calculates the rolling 30-day average of daily applications.
submitted_at, including days with zero applications.| Column | Type | Description |
|---|---|---|
| application_idPK | INT | Unique loan application identifier |
| dealership_id | INT | References the dealership associated with the application |
| submitted_at | DATE | Date the application was submitted |
| Column | Type | Description |
|---|---|---|
| dealership_idPK | INT | Unique dealership identifier |
| dealership_name | VARCHAR(100) | Dealership name |
| region | VARCHAR(50) | United Auto Credit operating region |
| is_active | BOOLEAN | Whether the dealership is currently active |