PostgreSQL - Window Functions in PostgreSQL
Consider this query:
Why might this query not return the expected last salary value for each employee?
SELECT emp_id, LAST_VALUE(salary) OVER (ORDER BY emp_id) FROM employees;
Why might this query not return the expected last salary value for each employee?
