how to check the 3rd max salary from an employee table?

Answer Posted / gourvendra singh

In oracle you can find the 3rd max salary with the help of
the command:-

select sal from(select sal from(select distinct sal from
emp order by sal desc)
where rownum <=3 order by sal asc) where rownum=1;

Is This Answer Correct ?    7 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between an inner join and an outer join?

716


What are the features of pl sql?

766


How to run sql*plus commands in sql developer?

797


Can we use distinct and group by together?

781


what is an alias command? : Sql dba

724






What is a parameter query?

817


What is sql*loader and what is it used for?

741


can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba

766


Are sql connections encrypted?

746


Explain polymorphism in pl/sql.

818


What is difference between sql and mysql?

743


Why we use sql profiler?

721


what are all the different types of indexes? : Sql dba

712


What is dba in sql? : SQL DBA

738


Explain clause in sql?

748