how to find nth highest salary
Answer Posted / anija
SELECT TOP 1 salary
FROM (
SELECT DISTINCT TOP n salary
FROM employee
ORDER BY salary DESC)
ORDER BY salary
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the recursive stored procedure in sql server?
How to loop through result set objects using odbc_fetch_row()?
What is the return type of executeupdate ()?
What is global temp table?
How does using a separate hard drive for several database objects improves performance right away?
What are user-defined functions (udfs) in sql server?
what is create database syntax? : Sql server database administration
Mention the 3 ways to get a count of the number of records in a table.
What do you understand by hotfixes and patches in sql server?
What are the restraints imposed on the table design by a merge replication?
How do you delete a data source?
How can a database be repaired?
How do I completely remove sql server instance?
What is ems sql management studio? : sql server management studio
what are different types of backups available in sql server? : Sql server database administration