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