Subject | Re: Proble with GROUP BY in SELECT |
---|---|
Author | alex_vnru@yahoo.com |
Post date | 2001-06-06T17:47:26Z |
--- In ib-support@y..., alfredm80@h... wrote:
numero values? :) Group by is used with aggregates, such as
Select Customer, Count(*)
From Invoices
Group By Customer
to know how many invoices were linked with every customer, or
Select Customer, Sum(MoneyPaid)
From Invoices
Group By Customer
to know how much money every customer bringed us.
Best regards.
> Hello:Hi, Alfred. May I ask you what you want to group by here around
>
> I have problems with the this select-sql statement:
>
> select * from dgcb group by numero order by numero;
>
numero values? :) Group by is used with aggregates, such as
Select Customer, Count(*)
From Invoices
Group By Customer
to know how many invoices were linked with every customer, or
Select Customer, Sum(MoneyPaid)
From Invoices
Group By Customer
to know how much money every customer bringed us.
Best regards.