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 oracle rowcount?
How to resolve the ORA-39133 error in Oracle?
What are the general rules on data consistency?
Can we use bind variables in oracle stored procedure?
What is a select query statement in oracle?
What is recycle bin in Oracle?
How to create an oracle testing table?
How to shutdown your 10g xe server from command line?
What is bulk load in oracle?
How can I create database in oracle?
State all possible different index configurations a table can possibly have?
What is a database table in oracle?
What is object data modeling?
What are the uses of synonyms?
Explain the use of constraints option in exp command.