Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / omkar hendre
select distinct(sal) from emp a where 2=(select count(distinct(sal)) from emp b where a.sal <=b.sal)
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you understand by pl/sql packages?
What is the use of sql trace?
What is difference between left and right outer join?
define join and explain different type of joins? : Sql dba
What is parameter substitution in sql?
What do you mean by “trigger” in sql?
What is compound trigger?
How long does it take to learn pl sql?
Explain the update statement in sql
how can we optimize or increase the speed of a mysql select query? : Sql dba
How do you rename a table in sql?
Can sql function call stored procedure?
What is dense_rank in sql?
what is 'mysqlcheck'? : Sql dba
What is an inconsistent dependency?