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

Answers were Sorted based on User's Feedback



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

Answer / ravikiran

select top 2(salary) from emp_sal where
salary in (select sal from emp_sal order by sal desc)

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More SQL Server Interview Questions

What does nvl stand for?

0 Answers  


What is stored procedure in SQL..??

2 Answers  


What is the use of toad or sqldbx.?

0 Answers   MCN Solutions,


How will you make an attribute not process? : sql server analysis services, ssas

0 Answers  


What is a database table?

0 Answers  






What is an sql server agent?

0 Answers  


You accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover?

0 Answers  


how to find 6th highest salary

0 Answers   Chetak Logistics,


How do you delete duplicate records in sql server?

0 Answers  


To which devices can a backup be created and where should these devices be located? : sql server management studio

0 Answers  


Do you know clustered and non-clustered index?

0 Answers  


How many types of relations are there between dimension and measure group? : sql server analysis services, ssas

0 Answers  


Categories