SQL - Window Functions Fundamentals
Given the table
employees with columns id, department, and salary, what will the query below return?SELECT id, salary, RANK() OVER (PARTITION BY department ORDER BY salary DESC) AS rank FROM employees;
