PostgreSQL - Window Functions in PostgreSQL
Consider the table
employees with columns department and salary. What will the following query return?SELECT employee_id, salary, SUM(salary) OVER (PARTITION BY department) AS total_dept_salary FROM employees;
