how to check the 3rd max salary from an employee table?
Answer Posted / somanath
select sal from emp a where 3=(select
count(distinct(sal)) from emp b
where a.sal<=b.sal)
| Is This Answer Correct ? | 34 Yes | 7 No |
Post New Answer View All Answers
what is dbms? : Sql dba
how to use regular expression in pattern match conditions? : Sql dba
define sql insert statement ? : Sql dba
Does group by remove duplicates?
Can we use distinct and group by together?
Can we rollback truncate?
Is primary key always clustered index?
how to start mysql server? : Sql dba
If a cursor is open, how can we find in a pl/sql block?
what are aggregate and scalar functions? : Sql dba
What is the best sql course?
Is primary key clustered index?
what is sql server agent? : Sql dba
what is bcp? When does it used? : Sql dba
how many tables will create when we create table, what are they? : Sql dba