How to retrieve 5th highest sal from emp table?

Answer Posted / venubabu

Select level,Max(sal) from emp
Where level=&level connect by prior sal>sal
group by level;


sql>Enter value for level:5

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why oracle is used?

582


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

613


How do we display rows from the table without duplicates?

551


State the difference between a primary key and foreign key?

518


Can you have more than one content canvas view attached with a window ?

1817






What are the arithmetic operations?

592


How to use subqueries in the from clause in oracle?

583


Explain the use of record length option in exp command.

563


Illustrate how to determine the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris).

1812


What is a sub query? What are its various types?

590


What is the minimum client footprint required to connect c# to an oracle database?

570


How do I manually create a database in oracle?

548


What is different types of joins?

581


How do I know if oracle client is installed on windows?

500


Differentiate between function and procedure in oracle.

561