PostgreSQL - Aggregate Functions and GROUP BY
You want to generate a report showing total sales by city, by product, and by city-product combination from a
sales(city, product, amount) table. Which query correctly uses GROUPING SETS to achieve this?