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
Explain the truncate in oracle?
What is oracle latest version?
What is a named program unit?
How to pass parameters to procedures in oracle?
How to connect ms access to oracle servers?
How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?
What is translate in oracle?
22. Display the order number, number of lines in the order, total number of items and total value for all orders that have a total value greater than $100
What is an oracle database?
Is oracle the best database?
How do you find out from the RMAN catalog if a particular archive log has been backed-up?
How to work with data objects interactively?
How many objectname will be created for a single table drop function? Why 'flashback' query giving error "ORA-38312: original name is used by an existing object" while getting the table?
How to set up autotrace for a user account?
Is the After report trigger fired if the report execution fails ?