PostgreSQL - Window Functions in PostgreSQL
Given the query:
What does the
SELECT department, employee, salary, AVG(salary) OVER w AS avg_salary FROM employees WINDOW w AS (PARTITION BY department ORDER BY employee) ORDER BY department, employee;
What does the
avg_salary column show?