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 are the differences between lov and list item?
What are the common oracle dba tasks?
Why do I get java.lang.abstractmethoderror when trying to load a blob in the db?
What are triggers in oracle?
How to sort output in descending order in oracle?
What is oracle open database communication (odbc)?
What would you do with an in-doubt distributed transaction?
How to write a query with a right outer join in oracle?
What is the relationship among database, tablespace and data file?
types of indexes and the rationale behind choosing a particular index for a situation.
What is the use of file param in imp command?
Define the SGA and: How you would configure SGA for a mid-sized OLTP environment? What is involved in tuning the SGA?
What privilege is needed for a user to insert rows to tables in another schema?
What is an oracle user role?
What is transport network substrate (tns) in oracle?