Declare @sal int
Set @sal=1 --------(what ever position you want)
Select E1.Esalary from MyEmployee E1
Where @sal=(select Count(distinct E2.Esalary) from MyEmployee E2
Where E2.Esalary >= E1.Esalary)
Go
Set @sal=1 --------(what ever position you want)
Select E1.Esalary from MyEmployee E1
Where @sal=(select Count(distinct E2.Esalary) from MyEmployee E2
Where E2.Esalary >= E1.Esalary)
Go