please tell me the query to get details of the employee
having the second largest salary

Answer Posted / krishna mohan thamisetty

SELECT * FROM Emp e1
WHERE 2 = (SELECT COUNT(*) FROM Emp e2 WHERE e1.Salary <=
e2.Salary)

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a query for primary key constraint with identity key word?

770


What is a covered index?

707


what are the different types of replication you can set up in sql server? : Sql server database administration

745


What is a collation?

808


Does view occupy space?

700






Explain indexed views and partitioned view with their syntax.

895


Explain nested trigger in sql?

762


Do you know the policy based administration feature of sql server 2008?

734


How do you handle datasets larger than 50 gb?

154


What is normalization? Explain different forms of normalization?

747


How to download microsoft sql server 2005 express edition?

774


Differentiate between mongodb vs. Sql server?

786


Explain transaction server distributed transaction?

675


what are the steps you will take, if you are tasked with securing an sql server? : Sql server database administration

734


What is difference between group by and having?

720