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
what are all the common sql function? : Sql dba
what are aggregate and scalar functions? : Sql dba
Is primary key clustered index?
Does group by remove duplicates?
how to escape special characters in sql statements? : Sql dba
What is the current version of postgresql?
Do we need to rebuild index after truncate?
what is sql server agent? : Sql dba
Can we rollback truncate?
How do I remove duplicates in two columns?
Can delete statement be rollbacked?
how many tables will create when we create table, what are they? : Sql dba
what are the advantages of sql ? : Sql dba
What is the best sql course?
define sql insert statement ? : Sql dba