| Subject | Re: [firebird-support] Looking for explanation of count and group by | 
|---|---|
| Author | Ann Harrison | 
| Post date | 2003-09-12T16:35:36Z | 
Bob Murdoch wrote:
from an empty table. If there were a way to count the groups, you'd get
the count of 0.
Regards,
Ann
            >selectIn the second case, firebird found no groups, which is like select *
> count(*)
>from
> test_group_by
>
>
>However, if I change the query to
>
>select
> column1, count(*)
>from
> test_group_by
>group by
> column1
>
>I recieve an empty result set. I think I would have expected a single row,
>with column1=NULL and a count of 0.
>
from an empty table. If there were a way to count the groups, you'd get
the count of 0.
Regards,
Ann