PostgreSQL - Aggregate Functions and GROUP BY
You have a table
sales with columns region, salesperson, and amount. How would you write a query to get each region with an array of salespersons who made sales over 1000, sorted alphabetically?