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

Answer Posted / devendra dwivedi

Select * from EmpTbl Where Salary = (Select Max(Salary) from
EmpTbl Where Salary < (Select Max(Salary) from EmpTbl)

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create new tables with "select ... Into" statements in ms sql server?

680


Does full backup break log chain?

729


What guidelines should be followed to help minimize deadlocks?

686


Tell me about joins in database system and explain each in detail.

802


When I run the sql server 2000 setup, it just hangs. What do I do?

800






What does the on delete cascade option do?

745


What is dirty read?

809


What is use of @@ spid in sql server?

876


Explain the difference between functions and stored procedures in sql server?

676


How to verify the port number of the sql server?

715


What is a data source file?

681


How do you test your database? : sql server database administration

715


What is default constraint in ms sql server?

712


How would we use distinct statement? What is its use?

784


What is Replication?

808