find out the second highest salary?
Answer Posted / peter
SQL> select sal
2 from (select sal,
3 row_number() over
4 (order by sal desc ) rn
5 from emp )
6 where rn = 2;
SAL
----------
3000
SQL>
| Is This Answer Correct ? | 13 Yes | 15 No |
Post New Answer View All Answers
What is a nested table and how is it different from a normal table?
WHEN CURSOR MOVES FROM ONE FORM TO ANOTHER FORM, HOW MANY TRIGGER WILL BE FIRED AND WHAT ARE THEIR SEQUENCE?
How do I manually uninstall oracle client?
What is system global area (sga) in oracle?
What is ordinary table in oracle?
Explain the use of show option in imp command.
I have a database backup file in .db (ext) form how to conver it into .dmp (ext.) for oracle database
How to drop an existing table in oracle?
What is program global area (pga) in oracle?
What is a partition in oracle?
What is merge statement used for?
How to delete a column in an existing table?
What are the uses of linked server and explain it in detail?
How to call a sub procedure?
What is oracle join syntax?