Compare each department's total doctor salaries to its budget. Return the department name, budget, total salary cost, and the percentage of budget used (salary / budget * 100). Round to 1 decimal place. Order by utilization descending.
Schema
🔑idINT
first_nameTEXT
last_nameTEXT
specialtyTEXT
🔗department_idINT
emailTEXT
phoneTEXT
hire_dateTEXT
salaryREAL
postgresql
Run your query to see results
Press Ctrl + Enter to execute