Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New SQL: What's with the GROUP BY error?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00853362
Message ID:
00853385
Vues:
19
OK, that makes more sense but it still doesn't follow the rules. You are only grouping on Detail.bccode. All other fields in Detail as well as Codes.Desc are going to be junk (or could possibly be). See Thread#852868 for more information.

HTH.

>>Steven,
>>You must include all non-aggregate columns in the GROUP BY clause. You have no aggregate columns so why are using the GROUP BY clause at all?
>>
>>Regards.
>
>Oops, copy/paste-ed the wrong item...same error
>
>
>SELECT Detail.*, count(*) as Total, Codes.desc;
> FROM ;
>     detail ;
>    LEFT OUTER JOIN codes ;
>   ON  Detail.bccode = Codes.code;
> GROUP BY Detail.bccode;
> ORDER BY Detail.bccode
>
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform