how to find nth highest salary
Answer Posted / sudhir
DISPLAY THE RECORDS WHO'S GETTING 3RD HIGHEST SALARY.
SELECT * FROM EMP E1
WHERE 3 =(SELECT COUNT(DISTINCT(SAL))
FROM EMP E2
WHERE E1.SAL <= E2.SAL)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you trace the traffic hitting a sql server?
What are the purposes and advantages stored procedure?
How many levels of sp nesting is possible?
How do you handle datasets larger than 50 gb?
What is a transaction and why is it important?
What is multilevel indexing?
Describe in brief authentication modes in sql server.
What is dirty page?
What happens if you delete a table that is used by a view?
How to use union to merge outputs from two queries together in ms sql server?
Would you store your query in a ssrs report or a database server? State the reason why?
Are resultset updatable?
What is the minimum recommended amount of ram for sql server 2012 enterprise?
How much does sql server 2016 cost?
What is lock escalation and what is its purpose?