Fungsi agregat windows di postgresql

SELECT depname, empno, salary, avg(salary) OVER (PARTITION BY depname) FROM empsalary;
Thoughtful Tamarin