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