Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / satya_k21
Hi,
Select * from emp e where 2>= (select count(sal) from
emp e where sal>=e.sal) order by desc.
Let me know if it is wrong..
Regards,
Satya.K
| Is This Answer Correct ? | 11 Yes | 16 No |
Post New Answer View All Answers
What are the different dcl commands in sql?
What is int identity in sql?
What is sql comments?
What are dml commands?
what are the limitations of mysql in comparison of oracle? Mysql vs. Oracle. : Sql dba
What is rename command in sql?
What is dba in sql? : SQL DBA
explain primary keys and auto increment fields in mysql : sql dba
What is a trigger in sql?
What is parallel hint?
Why partition by is used in sql?
Can one improve the performance of sql*loader? : aql loader
Why functions are used in sql?
Where not exists in sql?
What is a trigger word?