The University of Chicago research administration team needs to monitor annual awarded research funding by department. Write a PostgreSQL query that calculates year-over-year growth for every department and fiscal year with at least one awarded grant.
award_date and aggregate awarded grant amounts by department and year.LEFT JOIN.NULL for growth when no prior-year total exists or when the prior-year total is zero.| Column | Type | Description |
|---|---|---|
| department_idPK | INTEGER | Unique department identifier |
| department_name | VARCHAR(100) | Department name |
| school_name | VARCHAR(100) | Associated school or division |
| Column | Type | Description |
|---|---|---|
| grant_idPK | INTEGER | Unique grant identifier |
| department_id | INTEGER | Department associated with the grant |
| award_date | DATE | Date the grant was awarded |
| amount | NUMERIC(12,2) | Grant funding amount |
| grant_status | VARCHAR(20) | Current grant status |