Query to get max and second max in oracle in one query ?
Answer Posted / shareef
select ename,empno,sal,r from(select ename,empno,sal,dense_rank() over(order by sal desc) r from emp) where r=3; ----by using dense_rank()
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is oracle a relational database?
what is reindexing?
How to convert numbers to characters in oracle?
How to commit the current transaction in oracle?
What is parameterized cursor in oracle?
What are the different pseudo commands? Explain in general?
Can we connect to ORACLE db using Windows Authentication?
Why is oracle database so popular?
How to execute a stored program unit?
Explain about your project and its relation to the current job position you are applying to?
How to get a create statement for an existing table?
What is a schema in oracle?
Explain drop constraint oracle?
is there a tool to trace queries, like profiler for sql server?
What does sharding mean?