Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / anil_abbireddy
select * from emp a where 2=(select count(distinct sal)
from emp b where a.sal<=b.sal)
| Is This Answer Correct ? | 30 Yes | 8 No |
Post New Answer View All Answers
What is out parameter used for eventhough return statement can also be used in pl/sql?
What is data control language (dcl)?
What is an ndf file?
What is a common use of group by in sql?
What is sql integrity?
What is scalar function?
What is numeric function sql?
how to enter characters as hex numbers? : Sql dba
How many types of cursors are available in pl/sql?
what is an alias command? : Sql dba
Does execute immediate commit?
Which join condition can be specified using on clause?
List different type of expressions with the example.
what is an index? : Sql dba
What is a dynamic query?