SQL - Window Functions Fundamentals
Given the table
Employees with columns Department and Salary, what will the following query return?SELECT Department, Salary, RANK() OVER (PARTITION BY Department ORDER BY Salary DESC) AS SalaryRank FROM Employees;
