Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Nested Group Functions

672680Aug 19 2009 — edited Aug 20 2009
I thought max(count()) should be performed on the seperate groups of rows returned from GROUP BY deptno.
However, it seems that count() is performed based on GROUP BY while max() is performed upon the result of count() .. GROUP BY.
select max(count(deptno)) from emp group by deptno;
Why is this? How does nested group functions work against the GROUP BY?
This post has been answered by Solomon Yakobson on Aug 19 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 17 2009
Added on Aug 19 2009
4 comments
9,660 views