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
What are the roles of dba?
Explain the use of record length option in exp command.
please explain.. DB architecture ...
what is meant by magic query
Oracle
What is save point in oracle database?
Is oracle the best database?
What does sharding mean?
What is oracle latest version?
What is a parameter file in oracle?
How to insert multiple rows with one insert statement in oracle?
How many memory layers are in the oracle shared pool?
How to start your 10g xe server?
What do you mean by merge in oracle?
What's dateware house and what's clustor with practicle example