PostgreSQL - Aggregate Functions and GROUP BY
Given the table
orders with columns customer_id and product, what will this query return?SELECT customer_id, ARRAY_AGG(product ORDER BY product) FROM orders GROUP BY customer_id;
