| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Why using "Group By"
Mikito Harakiri wrote:
> "oferbu" <junkbu_at_hotmail.com> wrote:
>>So if I sum all the replies by now, there is no really any need for >>the extra information added by the clause "Group by YYY, ZZZ" when the >>SQL already contains an aggregate function, right?
IIRC, didn't Chris Date have a sequence of articles with the heading GBH - Grievous Bodily Harm - in DBP&D in the last months of his "According to Date" series. The thesis was roughly that both GROUP BY and HAVING (the GB and H in GH) were unnecessary, even harmful.
> and, therefore, "group by" is redundant.
I believe that this is correct - except that standard SQL requires it.
-- Jonathan Leffler #include <disclaimer.h> Email: jleffler_at_earthlink.net, jleffler_at_us.ibm.com Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/Received on Mon Mar 17 2003 - 23:16:38 CST
![]() |
![]() |