How to find 6th highest salary from Employee table ?
Answer Posted / answer
SELECT MIN(SALARY) FROM EMPLOYEE WHERE SALARY IN (SELECT
DISTINCT TOP 6 MAX (SALARY) FROM EMPLOYEE ORDER BY SALARY
DESC)
| Is This Answer Correct ? | 16 Yes | 4 No |
Post New Answer View All Answers
What is a with(nolock)?
Do you know concepts and capabilities of sql server?
Can you explain about buffer cash and log cache in sql server?
What is the latest version of microsoft sql server?
Explain different types of collation sensitivity?
How to view existing indexes on an given table using sys.indexes?
What is ssl in sql server?
What are the advantages to use stored procedures?
Explain subquery and state its properties?
What are the common performance issues in sql server?
Is it possible to call a stored procedure within a stored procedure?
What is logon trigger?
Where are sql server user names and passwords stored in sql server?
What is a trace frag? Where do we use it?
What is SubQuery in SQL Server 2008