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