Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / sandeep
select top(1) a.name
from
(
select top(2) name,salary
from
employee
order by salary desc
)a
order by a.salary asc
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is difference between cursor and trigger?
What is a temporal data type?
What are the different parts of a package?
What is an emotional trigger?
What are the packages in pl sql?
How to add, remove, modify users using sql?
Why do we use partitions in sql?
When should I use nosql database?
Is inner join faster than left join?
Explain the components of sql?
What is the most restrictive isolation level? : Transact sql
What are the different sql languages?
Is sql a dbms?
Is left join and outer join same?
Is sql similar to python?