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
How do I know if oracle is installed on windows?
What is procedure overloading in oracle?
How do we display rows from the table without duplicates?
What are temporal data types in oracle?
What are the common oracle dba tasks?
Can we write insert statement in function in oracle?
Which environment variables are absolutely critical in order to run the OUI?
What happens if you use a wrong connect identifier?
How to compare dates in oracle sql?
What is a initialization parameter file in oracle?
What is translate in oracle?
How to list all indexes in your schema?
What is recycle bin in Oracle?
How can you use check constraints for self referential integrity?
how to clone 9i Database on to 10g Database.