Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New SQL: What's with the GROUP BY error?
Message
 
À
25/11/2003 15:19:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00853362
Message ID:
00853691
Vues:
19
> "all non aggregate columns" so every field in detail ( I assume there is more > than bccode in there)must be in the group by.

Yeah, I see that now. It would be quite a drag to articulate all the fields that Detail.* would imply. So since this is old legacy code, I'm opting for the SET ENGINEBEHAVIOR 70 setting to resolve the error rather than correcting code. When writing new code I'll follow the purer SQL rules.

Thanks Nick,
Steven-



>>
>>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
>>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform