how can find the second max sal for every group(i.e i want
group the data based on key and find the second max sal for
every group
Answer Posted / nathan
SELECT *
FROM (SELECT deptno, sal,
DENSE_RANK () OVER (PARTITION BY deptno ORDER
BY sal DESC)
ranks
FROM emp)
WHERE ranks = 2;
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How to insert a new row into a table in oracle?
Can we use oracle pl/sql block in core java? if so how? pls get back to me .....
How to create id with auto_increment on oracle?
What is a sub query? Describe its types?
why should i declare foreign key constraint as self relation instead of binary relation in tables ?
How to sort output in descending order in oracle?
What is memory advisor in Oracle?
What is an external table?
Explain coalesce function?
can anyody please send me the dump for Oracle 10g certifications for DBA path?
What happens if you use a wrong connect identifier?
How to retrieve data from an cursor to a record?
How to load a large xml file?
What is a cursor variable?
Explain temporal data types in oracle