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

Answer Posted / shivangi

Select max(Salary) from employeetable where salary < (select
max(salary) from Employeetable)

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does nvl stand for?

552


If a table does not have a unique index, can a cursor be opened on it?

510


What is the difference between clustered and non-clustered indexes in ms sql server?

479


What is the difference between varchar and nvarchar datatypes?

564


how can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role? : Sql server administration

558






What are page splits?

575


What is the impact on other user sessions when creating indexes?

536


How to retrieve error messages using mssql_get_last_message()?

519


Explain four layers of abstraction microsoft architectured?

120


Why use “nolock” in sql server?

548


What is the need for group functions in sql?

555


Tell me something about security and sql azure?

100


Can we use having clause without group by?

541


What is plan freezing?

572


What is ms sql server service broker?

506