PostgreSQL - Aggregate Functions and GROUP BY
Given the table
sales with columns region and amount, what will this query return?SELECT region, SUM(amount) FROM sales GROUP BY region HAVING SUM(amount) > 1000;
