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

Answer Posted / ram

SELECT TOP 1 ESAL
FROM
(
SELECT DISTINCT TOP 2 ESAL
FROM EMPLOYEE
ORDER BY ESAL DESC
)ABC
ORDER BY ESAL ASC

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wide table?

698


How many columns can exist together per table?

884


What are the types of containers in ssis?

780


How can we call UDF(User Define Function) using C# code in ASP.net ?

6363


What are transactions and its controls?

796






How to reaname table name without using sp_Rename in sql server..?

727


Define magic tables in sql server?

756


Does a sql server 2005 select statement require a from?

774


Is null vs coalesce?

644


What is the use of =,==,=== operators?

770


Explain about the command-line tool SQLCMD?

748


How to use clusters?

693


What is a recursive stored procedure in sql server?

772


1.how to find the dead lock in sql server? 2.How to fine the memory leaks in sql server? 3.suppose transaction log file increasing what action will take ?

1727


What command would you use to create an index?

777