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


Please Help Members By Posting Answers For Below Questions

difference between anonymous blocks and sub-programs.

620


what is the difference between blob and text? : Sql dba

523


What is an oracle stored procedure?

586


Do ddl statements need commit?

533


Which is the correct statement about truncate and delete?

525






What is left join in sql?

577


How to get each name only once from an employee table?

604


What does (+) mean in sql joins?

521


When to use inner join and left join?

524


What is the best free sql database?

561


What does pl sql stand for?

651


How do you go back in sql?

528


How to download oracle sql developer?

655


What are different types of sql commands?

508


Explain the the update statement in sql?

566