how to find nth highest salary
Answer Posted / suhail qaiser
SELECT TOP Nth salary
FROM (
SELECT TOP N salary
FROM emp
ORDER BY salary DESC
) TmpTable
ORDER BY salary ASC
| Is This Answer Correct ? | 38 Yes | 56 No |
Post New Answer View All Answers
Explain how you can deploy an SSRS report?
What stored procedure would you use to view lock information?
What are the underflow and overflow behaviors on float literals?
Difference between report and query parameter.
How to move database physical files in ms sql server?
What are a scheduled jobs or what is a scheduled tasks?
What is local temp table?
What are different types of data sources?
Why it is recommended to avoid referencing a floating point column in the where clause?
Where to find ntwdblib.dll version 2000.80.194.0?
What are various ways to enhance the ssrs report?
How to list all stored procedures in the current database using ms sql server?
Difference between group by clause and having clause in SQL?
What are the difference between data mart and data warehouse? : sql server analysis services, ssas
How can we remove orphan records from a table?