Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
immad
Posting Yak Master
230 Posts |
Posted - 2015-04-20 : 02:11:30
|
hi,my data looks like thisID----------Name-----------------Salary1------------A---------------------150002------------B---------------------120003------------C---------------------50004------------D----------------------8000i want to get third higest salary thanks for the helpimmad uddin ahmed |
|
Maithil
Starting Member
29 Posts |
Posted - 2015-04-20 : 03:04:40
|
select a.Salaryfrom (select Salary,Row_Number() OVER(Order by salary DESC) RowNm from your_Table) a where a.RowNm=3 |
|
|
|
|
|