PostgreSQL - Aggregate Functions and GROUP BY
Given the table
products with columns category and name, what is the output of this query?SELECT category, JSON_AGG(name) FROM products GROUP BY category ORDER BY category;
