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 is a parameter file in oracle?
How to run create database statement?
Explain an index segment?
How to export your own schema?
Can sub procedure/function be called recursively?
what is meant by magic query
How to define a sub function?
Explain the blob datatype?
What privilege is needed for a user to insert rows to tables in another schema?
Where is the export dump file located?
What happens if variable names collide with table/column names?
How to loop through data rows in the implicit cursor?
candidate key is subset of super key but not vice-verse explain
Give the different types of rollback segments.
i wrote a pl/sql procedure. it must run every sunday 4.40 How can i schedule it with the help of dbms_jobs (or another other procedure with out creating bat file,exe file)