how to select second mauximum value in a given table under salary column
Answer Posted / u.radha
SELECT * FROM (SELECT ENAME,SAL,DENSE_RANK() OVER(ORDER BY SAL DESC) RN FROM EMP) WHERE RN = 2;
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to rollback the current transaction in oracle?
What is redo log?
Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?
What are a collation and state the different types of collation sensitivity?
How to use "if" statements on multiple conditions?
What is the difference between Delete, Truncate and Drop in Oracle?
What is program global area (pga) in oracle?
Can we call procedure inside function in oracle?
What are the extensions used by oracle reports?
What is coalesce function?
How to rebuild an index in oracle?
How to create a stored program unit?
What are the types of partitions in oracle?
What is user managed backup in Oracle?
Explain compound trigger in oracle?