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 / neha k

select sal
from (SELECT sal, rownum row_num
FROM emp
order by sal desc)
where row_num = 2;

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we delete duplicate rows in a table?

558


How to create a new tablespace in oracle?

552


Explain alias?

703


Using the relations and the rules set out in the notes under each relation, write statements to create the two sequence generators specified in the notes.

1642


material view and view disadvantages?

633






how can db_files > maxdatafiles since db_files is for instance and the later is for database

2173


What is oracle sid?

505


how may join possible between (requisition with purchase order)

1695


Can we store pictures in the database and if so, how it can be done?

583


How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?

1825


HI, Please let me know the syllabus for Oracle OCA and OCP Certification

1945


Can we commit inside a function in oracle?

552


Can we use oracle pl/sql block in core java? if so how? pls get back to me .....

2501


How to put more than 1000 values into an oracle in clause?

579


What types of joins are used in writing subqueries?

555