PostgreSQL - Aggregate Functions and GROUP BY
Identify the error in this query:
SELECT category, region, SUM(amount) FROM sales_data GROUP BY GROUPING SETS ((category), region);
