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
how is exception handling handled in mysql? : Sql dba
What is pl sql collection?
Is postgresql a server?
how many sql dml commands are supported by 'mysql'? : Sql dba
What are the advantages of pl sql over sql?
Why do we need a foreign key?
Why having clause is used in sql?
What is sql analyzer?
Is sql microsoft?
Why is %isopen always false for an implicit cursor?
What are the different types of dbmss?
What is Histogram?
What are local and global variables and their differences?
What are pl/sql packages?
What does partition by mean in sql?