find out the third highest salary?

Answer Posted / husenaiah.b

select empno,ename,sal from
(select empno,ename,sal from emp order by sal desc)
group by rownum,ename,sal having rownum=&n;
from this query we can find top nth sal

Is This Answer Correct ?    22 Yes 38 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain self joins in oracle?

569


Explain a private synonyms?

645


what are the default admin accounts in Oracle 10g ?

517


How do we get field details of a table?

562


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

1856






What is a nested table?

636


Explain temporal data types in oracle

619


What are transaction isolation levels supported by oracle?

582


How to estimate disk space needed for an export job?

572


What is the difference between 10g OEM and 11g OEM?

567


How to delete an existing row from a table in oracle?

654


What is the use of oracle?

565


List the parts of a database trigger.

590


What is the Tune Query

1857


What are operators in oracle?

536