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