PostgreSQL - Aggregate Functions and GROUP BY
Given the table
sales(product, region, amount), what will be the output of this query?SELECT product, region, SUM(amount) FROM sales GROUP BY GROUPING SETS ((product), (region));
