find the second highest salary of the emp table

Answer Posted / gyana ranjan behera

sql>select ename,sal from(select ename,sal,rownum rn from
(select ename,sal from emp order by sal desc)
where rn=2;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between hot backup vs. Cold backup?

694


What is oracle instant client?

640


What is a user role in oracle?

701


What is the usage of synonyms?

684


IS it possible to built the oracle database without setting the kernal parameters?

1851






What is java oracle used for?

625


What are the predefined tablespaces in a database?

644


How to convert csv to table in oracle?

610


 What are the oracle DML commands possible through an update strategy?

684


How to use null as conditions in oracle?

665


What is a trace file and how is it created in oracle?

632


What is the difference between substr and instr?

601


Point out the difference between user tables and data dictionary?

622


What is an oracle and why it is used?

694


Explain the use of constraints option in exp command.

663