please tell me the query to get details of the employee
having the second largest salary
Answer Posted / krishna mohan thamisetty
SELECT * FROM Emp e1
WHERE 2 = (SELECT COUNT(*) FROM Emp e2 WHERE e1.Salary <=
e2.Salary)
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
What is raid? : SQL Server Architecture
What are extended events in sql server?
how will add additional conditions in sql?
What are database states in ms sql server?
What is dbcc updateusage?
How to rename an existing column with sql server management studio?
What are the types of sql server?
Tell me what is difference between view and materialized view?
Tell me the phases a transaction has to undergo?
What is a data source or ds? : sql server analysis services, ssas
What are the recovery models for a database?
How many replicas are maintained for each SQL Azure database?
Write the queries for commands like Create Table, Delete table, Drop Table etc.
When would you prefer to have a minimum number of indexes?
How do you start single user mode in clustered installations?