Tuesday, January 23, 2024

Salary Second Highest

Second Highest Salary Department Wise. Group by 




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 






Screen Record

 Windows Screen Record WindowsKey+ Alt + R Recording Starts.