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 background process in Oracle?
How to experiment a data lock in oracle?
What is oracle data type?
Difference between oracle's plus (+) notation and ansi join notation?
How to create a server parameter file?
Explain mutating triggers.
How to call a stored function with parameters?
Can you assign multiple query result rows to a variable?
What privilege is needed for a user to query tables in another schema?
How to use "if" statements on multiple conditions?
What do you mean by redo log file mirroring?
what is insert all statement in sql
what is port in oracle? how is it related to database application.
What is a database table in oracle?
What is the use of oracle?