how to find the n'th highest salary from emp ?

Answer Posted / jaya u

SELECT A.EMPNAME ,A.SAL FROM EMP A
WHERE A.SAL = (SELECT DISTINCT (b.sal)
FROM EMP B WHERE ROWNUM = &N
ORDER BY B.SAL DESC );

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a tns service name?

544


What is the purpose of tables, private synonyms and public synonyms in Oracle?

597


What happens to the current transaction if the session is ended?

535


Why is oracle used?

559


What is an Oracle index?

1183






what is the difference between functional dependecy and multilevel dependency?

2000


What types of joins are used in writing subqueries?

571


How to find the duplicate rows count from employees table in oracle?

558


How to filter out duplications in the returning rows using oracle?

646


How to best split csv strings in oracle 9i?

601


How to create a new table in your schema?

615


How do we create privileges in oracle?

594


What are the restrictions on external table columns?

555


Why do we need integrity constraints in a database?

596


Explain oracle data types with examples?

582