PostgreSQL - Aggregate Functions and GROUP BY
You want to generate a report showing sales totals by
region, product, and year, including all subtotals and grand totals. Which query correctly uses CUBE to achieve this?