For employees who have a department, show payroll per dept_id as payroll, plus an extra grand total row at the end, in a single query. Use ROLLUP.
dept_id
payroll
ROLLUP
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.