find out the second highest salary?
Answer Posted / peter
SQL> select max(sal) sal
2 from (select sal,
3 dense_rank() over
4 (order by sal desc) rnk
5 from emp )
6 where rnk = 2;
SAL
----------
3000
SQL>
Is This Answer Correct ? | 14 Yes | 9 No |
Post New Answer View All Answers
What happens if you set the sga too low in oracle?
Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracles. What database recovery options are available? Database is in archive log mode.
What are the various oracle database objects?
What is oracle rownum?
Why is oracle so popular?
What are the different types of failures that occur in Oracle database?
What is oracle database client?
Please explain oracle data types with examples?
How do we get field detail of a table?
What is an oracle user role?
What is hot backup and logical backup?
how to convert .db (extention) database file into .dmp (extention ) for oracle database ?
What is SQL Tuning Advisor in Oracle?
How to create a table index?
How do we display rows from the table without duplicates?