how to get the second max val for every group in a table
Answer Posted / ram posam
select * from (select deptno,sal,rank() over(partition by
deptno order by sal desc) k
from emp
group by deptno,sal)
where k=&n;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is an Oracle Instance?
Define the SGA and: How you would configure SGA for a mid-sized OLTP environment? What is involved in tuning the SGA?
Difference between cartesian join and cross join?
Give the different types of rollback segments.
How to recover a dropped table in oracle?
Database is hung. Old and new user connections alike hang on impact. What do you do? Your SYS SQLPLUS session IS able to connect.
What are the types of trigger in oracle?
How to put more than 1000 values into an oracle in clause?
you are a universe designer and report developer in BO, what type of information you gather from client?Briefly explain plz
How to work with data objects interactively?
How to convert character types to numeric types?
What are ddl statements in oracle?
How to get a list of all user accounts in the database?
How do I find my oracle client driver version?
What is bulk collect in oracle?