find out the third highest salary?

Answer Posted / saleem

select distinct(a.sal) from emp a where &3 = ( select count
(distinct(b.sal) from emp b where a.sal <= b.sal));

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which dictionary view(s) would you first look at to understand or get a high-level idea of a given Advanced Replication environment?

1481


How to get last row id?

557


What are oracle functions?

553


What is the relation of a user account and a schema?

613


Provide an example of a shell script which logs into SQLPLUS as SYS, determines the current date, changes the date format to include minutes & seconds, issues a drop table command, displays the date again, and finally exits.

1577






What to do if the startbd.bat failed to start the xe instance?

609


Explain the use of file option in exp command.

601


Why is oracle database so popular?

566


What is background process in Oracle?

626


How to create id with auto_increment on oracle?

545


How many types of cluster table in Oracle?

575


Are truncate and delete commands same? If so why?

651


What is a system tablespace and when it is created?

558


Explain the importance of .pll extension in oracle?

554


How is it different from a normal table?

582