SQL Fundamentals — Hard
Key points
- The query uses GROUPING SETS to specify multiple grouping sets
- The result includes per-department counts and a total row
- The empty grouping set () generates the grand total
Ready to go further?
Related questions
SQL Fundamentals — Hard
Key points
Ready to go further?
Related questions