PostgreSQL - Window Functions in PostgreSQL
What is wrong with this query?
SELECT employee_id, salary, SUM(salary) OVER PARTITION BY department ORDER BY employee_id FROM employees;
