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
What is the difference between post-database commit and post-form commit?
What happens if variable names collide with table/column names?
Explain integrity constraint?
Why does oracle 9i treat an empty string as null?
Which is better Oracle or MS SQL? Why?
How a tablespace is related to data files?
What is Reduced List of Values?
State all possible different index configurations a table can possibly have?
How to create a new view in oracle?
What are group functions in oracle?
Select all the employees who were hired in last 2 years and who works in dept where max managers are working.
what is the difference between substr and instr function in oracle?
How to bring a tablespace offline?
How to download oracle database 10g xe?
How to use subqueries in the from clause in oracle?