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
What is difference between commit and rollback when used in transactions?
What is change tracking in sql server?
is it important for a database administrator to understand the operating system and file access? : Sql server administration
How to send a ssrs report from ssis?
Can you tell me some of the common replication dmv's and their use? : sql server replication
What are difference between Cluster index and Non-Cluster index?
Explain about local stored procedure?
Explain the difference between functions and stored procedures in sql server?
List out what other servers you can use with ssrs?
How to perform backup for certificates in sql server? : sql server security
How to delete duplicate rows from table except one?
What is the primary use of the model database?
Do you know nested transaction?
You have to store user responses of ‘yes’ and ‘no’ what kind of data type is best suited for this task?
do views contain data ?