how to find nth highest salary
Answer Posted / arun
SELECT MAX(salary)FROM employee WHERE salary NOT IN
(SELECT TOP 1 salary FROM employee ORDER BY salary DESC)
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How to disconnect from a sql server using mssql_close()?
What is a trigger in sql server?
Can two tables share a primary key?
What is database black box testing?
Do you know the policy based administration feature of sql server 2008?
What is a full text index?
Mention a few common trace flags used with sql server?
What are scalar functions in sql?
what are the different types of SSRS reports?
can you instantiate a com object by using t-sql? : Sql server database administration
Do you know spatial data types - geometry and geography in sql server 2008?
How can you know if the row fetched from cursor is still valid in underlying table?
Explain what is meant by replication of database?
Can you explain different types of joins?
What is meant by dirty read?