how to check the 3rd max salary from an employee table?
Answer Posted / akula
select min(sal) from(select distinct(sal) from emp order by sal desc) where rownum<=3;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Does group by remove duplicates?
Can we use distinct and group by together?
Is primary key always clustered index?
what are aggregate and scalar functions? : Sql dba
Do we need to rebuild index after truncate?
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
how many tables will create when we create table, what are they? : Sql dba
how to use regular expression in pattern match conditions? : Sql dba
If a cursor is open, how can we find in a pl/sql block?
What is the current version of postgresql?
Can delete statement be rollbacked?
how to escape special characters in sql statements? : Sql dba
How do I remove duplicates in two columns?
What is the best sql course?
what is dbms? : Sql dba