Write a query to find the top 5 departments by total expenditure in the last fiscal year at the University of Utah.
Use the fiscal year marked as the last completed fiscal year. Return only expenditure records associated with a department and that fiscal year.
department_name and total_expenditure.total_expenditure descending, breaking ties by department_name ascending.| Column | Type | Description |
|---|---|---|
| department_idPK | INT | Unique department identifier |
| department_name | VARCHAR(150) | University of Utah department name |
| college_name | VARCHAR(150) | College or administrative division containing the department |
| Column | Type | Description |
|---|---|---|
| expenditure_idPK | INT | Unique expenditure record identifier |
| department_id | INT | Department charged for the expenditure |
| fiscal_year | INT | Fiscal year associated with the expenditure |
| amount | NUMERIC(14,2) | Expenditure amount in US dollars |
| Column | Type | Description |
|---|---|---|
| fiscal_yearPK | INT | Fiscal year identifier |
| start_date | DATE | First date of the fiscal year |
| end_date | DATE | Last date of the fiscal year |
| is_last_completed | BOOLEAN | Whether this is the last completed fiscal year |