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
Can you use order by when defining a view?
Stored Procedure returns data from multiple tables. How to access it in your ASP.Net code?
Write a query to find 5th highest amount paid from the customer table.
What is difference between view and materialized view?
How do you run a trace?
How do you delete duplicate rows in sql server?
explain what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration
What the class forname () does?
What is cte (common table expression)?
What are the advantages of user defined function?
List down some advantages of sql stored procedure?
What type of Index will get created after executing the above statement?
What is the impact on other user sessions when creating indexes?
What is dimension table? : sql server analysis services, ssas
Explain how many types of relationship?