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
How can I get column names from a table in oracle?
How to write a query with an inner join in oracle?
How to set up autotrace for a user account?
How do I limit the number of rows returned by an oracle query after ordering?
How to use "if" statements on multiple conditions?
What is bulk copy or bcp in oracle?
Explain the use of tables option in exp command.
Illustrate how to determine the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris).
How to use "in" parameter properly?
Explain cascading triggers.
What is oracle rowcount?
What do the 9i dbms_standard.sql_txt() and dbms_standard.sql_text() procedures do?
Explain parameter file in oracle.
How many categories of data types in oracle?
What is the difference between hot backup and cold backup in oracle? Tell about their benefits also.