PostgreSQL - Aggregate Functions and GROUP BY
Find the problem in this query:
Assuming
SELECT STRING_AGG(name, ',') FROM employees GROUP BY department;Assuming
name and department columns exist.