how to find nth highest salary
Answer Posted / sitakanta rath
SELECT sal FROM
(
SELECT DENSE_RANK() OVER (ORDER BY sal DESC) AS rank, sal
FROM Emp
) T2
WHERE rank=@n
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How you can get a list of all the table constraints in a database? : Sql server administration
what are the different stages of Report Processing?
What are the different authentication modes in sql server? How can it be changed?
What are views in ms sql server?
How to delete duplicate rows in sql server?
What is TDS(Tabular Data Stream) Gateway?
What is the fillfactor concept in indexes?
List the data types available in mssql?
Explain the difference between clustered and non-clustered index?
How to execute a sql statement using odbc_exec()?
what is raid and what are different types of raid configurations? : Sql server database administration
What are different types of raid configurations? : SQL Server Architecture
What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?
How many categories of data types used by sql server?
What is default port number for sql server 2000?