Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New SQL: What's with the GROUP BY error?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00853362
Message ID:
00853371
Views:
20
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.

>Hi anyone,
> I realize that VFP8 is now more 'purest' with SQL expressions. But what would be wrong with the following that would render error "SQL: GROUP BY clause is missing or invalid." (FWIW, this code sample was created by Query Designer.)
>
>Thanks for any ideas,
>Steven-
>----------------------------------------------------
>
>SELECT Detail.*, 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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform