Published on: July 26, 2025 | Published by: Sai Sreeram Gundepudi
SELECT department, SUM(salary) FROM employees GROUP BY department WITH ROLLUP;
The NULL row shows the grand total.