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
How to insert a record into a table?
How to define a cusotmer as a supplier in ORACLE R12
Why do we need oracle client?
Explain what are the characteristics of data files?
What is oracle thin client?
Typically, where is the conventional directory structure chosen for Oracle binaries to reside?
Does oracle charge for java?
How do I uninstall oracle client from windows?
What are the components of logical database structure in oracle database?
What is instant client oracle?
How to use values from other tables in update statements using oracle?
Is there a combination of "like" and "in" in sql?
what is the use of system.effective.date variable in oracle?
What are the database administrators utilities available?
How to install oracle odbc drivers?