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 / esakkiraja

select a.* from(select dense_rank() over(order by sal)as
new_rank from emp) a where new_rank=2

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the usage of save points in oracle database?

531


How to create a table index?

558


How to create an oracle testing table?

587


Why does for update in oracle 8 cause an ora-01002 error?

541


How to experiment a data lock in oracle?

593






What is a system tablespace and when it is created?

556


What are the limitations oracle database 10g xe?

566


Explain the use of show option in imp command.

636


Explain what are synonyms used for?

600


How to name query output columns in oracle?

679


How to use fetch statement in a loop?

547


What is the best way to do multi-row insert in oracle?

559


How to delete all rows a table in oracle?

617


What are the different types of synonyms?

587


What query tells you how much space a tablespace named test is taking up, and how much space is remaining?

1796