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 is a join? : Sql dba
How many types of index are there?
What is crud diagram?
What is a dynamic query?
Is it possible to pass parameters to triggers?
What is normalization sql?
What are the two types of exceptions in pl/sql?
Is not equal in sql?
What is primary and foreign key?
how to do backup entire database? : Transact sql
What are triggers and its types?
What is group by in sql?
What are local and global Indexes and where they are useful.
What is the limitation on the block size of pl/sql?
How does sql*loader handles newline characters in a record? : aql loader