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
How many types of segments in Oracle?
What is the parameter mode that can be passed to a procedure?
Is postgres faster than oracle?
Can u please explain me the Discussion on Except ,using cast like type cast. Question in the context of difference between two tables
What is oracle in java?
What is a static data dictionary in oracle?
How to specify default values in insert statement using oracle?
What is an oracle recycle bin?
What is the scope of a local variable?
Is there a combination of "like" and "in" in sql?
What is translate in oracle?
what is a Nested Loop join?
How many types of auditing in Oracle?
How to select an oracle system id (sid)?
From the following identify the non schema object: packages, triggers, public synonyms, tables and indexes.