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 are the steps to process a single select statement?
You have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem?
Can a synonym name of a table be used instead of a table name in a select statement?
How to access the deleted record of an event?
Thanks to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?
Find columns used in stored procedure?
How to reaname table name without using sp_Rename in sql server..?
What is the security model used in sql server 2005?
Differentiate sql server reporting services vs. Crystal reports?
what is bit datatype? : Sql server database administration
Name three of the features managed by the surface area configuration tool? : sql server security
What is save transaction and save point?
What is cdc in sql server?
What is function of master database?
Why olap is used?