select * from
(
select EmpId, EmpName, Salary, Department,
ROW_NUMBER() Over (Partition by Department Order by Salary Desc) AS SalaryRank
from Emp
) dd
where SalaryRank = 2
Windows Screen Record WindowsKey+ Alt + R Recording Starts.
No comments:
Post a Comment