1.how to extract the second highest salary from emp table
having sal as a column which contains the salary of all
employee of an organisation.

Answer Posted / hema

Select sal from emp a where 2=(select count(distinct sal)
from emp b where a.sal <= b.sal)

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to join two tables in a single query using oracle?

560


you are a universe designer and report developer in BO, what type of information you gather from client?Briefly explain plz

1554


Explain the use of indexes option in exp command.

590


How to sort output in descending order in oracle?

568


If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...

1726






What are the different types of synonyms?

587


Explain the blob datatype?

610


What do you mean by a deadlock?

513


How to build data dictionary view an new database?

524


Explain what are the type of synonyms?

576


What are the extensions used by oracle reports?

571


Explain the use of ignore option in imp command.

567


What does sharding mean?

534


what is the difference between restoring and recovering?

548


What is a dynamic performance view in oracle?

598