find out the third highest salary?

Answer Posted / siddharth mitra

select *
from (select row_number() over (order by salary asc) as
"ROW_NUM" from emp)
where ROW_NUM = 3;

This only works with oracle 8i and 9i,i.e., row_number is an
analytic function.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a parameter file in oracle?

560


How to insert multiple rows with one insert statement in oracle?

570


What is Virtual Private Database in Oracle?

619


How can we find out the current date and time in oracle?

641


A table t is there.If you perform insert ,update and delete then the trigger will fire.What is the minimum no of trigger required for a table.

4257






How can we create the complete backup of data in the oracle.

1682


Can group functions be mixed with non-group selection fields?

530


What is integrity and what is constraint??Explain with example

1695


Explain an extent?

657


What is oracle used for?

534


How many categories of data types in oracle?

604


When do I need to use a semicolon vs a slash in oracle sql?

590


Explain overloading. Can functions be overloaded?

568


Why do you use stored procedures and state some of its disadvantages?

563


How do you store pictures in a database?

556