How to retrieve 5th highest sal from emp table?

Answer Posted / vasu

select * from emp a where &nth in(select count(b.sal) from
emp b where b.sal<=a.sal);

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to change user password in oracle?

616


How to drop a tablespace?

582


what is normalisation?what are its uses?

1773


What is the difference between hot backup and cold backup in oracle?

528


What is an oracle user account?

591






How to use "out" parameter properly?

640


Explain the use of owner option in exp command.

577


How to resolve name conflicts between variables and columns?

581


How to create an oracle database manually?

581


what is partitioning? Types of partitioning. explain? what is the new kind of partitioning type introduced in 9i?

1856


What is meant by a deadlock situation?

587


What do you mean by merge in oracle and how can we merge two tables?

585


What are the ways tablespaces can be managed and how do they differ?

1630


What is the disadvantage of User defind function?

1845


What is the difference between primary key and unique key and foreign key in oracle?

560