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 partition in sql query?
What is mutating error in pl sql?
What is sql scripting?
what are date and time functions in mysql? : Sql dba
How do you explain an index number?
How sql query is executed?
What is range partitioning?
What is the use of index in sql?
what is sql? : Sql dba
explain about mysql and its features. : Sql dba
How do I partition in sql?
Is sql low level language?
What is sql comments?
Is microsoft sql free?
How do I create an index in word?