| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: GROUP BY
Vadim Tropashko wrote:
> On May 19, 2:20 pm, Vadim Tropashko <vadimtro_inva..._at_yahoo.com> > wrote: >
> > > Oh, I see the problem! There is no empty set listed in the powerset > relation. Therefore, indeed set equality join would produce the empty > relation...
I don't know if I followed what you wrote at all, but it occurs to me that the grouped aggregation is equivalent to a project joined with a bunch of corresponding ungrouped aggregations.
Thus if we have an empty r, I would expect the following results:
select count(*) as ct from r group by {};
ct
0 rows.
select count(*) as ct from r;
ct
0
1 rows. Received on Sat May 19 2007 - 17:55:32 CDT
![]() |
![]() |