PostgreSQL - Aggregate Functions and GROUP BY
Consider the table
employees with columns department, role, and salary. What does this query return?SELECT department, role, AVG(salary) FROM employees GROUP BY department, role;
