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
Why use resource manager in Oracle?
What are the execution control statements?
How to define a variable of a specific record type?
How do I start tns listener?
How to handle a single quote in oracle sql?
What are the arithmetic operations?
What is open database communication (odbc) in oracle?
What is a package in oracle?
What is hash cluster in oracle?
Difference between oracle's plus (+) notation and ansi join notation?
What is a partition in oracle?
What are joins, explain all types of joins?
How to create an oracle testing table?
What is a tns file?
What is clustered table in Oracle?