Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New SQL: What's with the GROUP BY error?
Message
From
25/11/2003 15:19:49
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00853362
Message ID:
00853466
Views:
15
Hi

"all non aggregate columns" so every field in detail ( I assume there is more than bccode in there)must be in the group by.

Nick Mason

>>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
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform