Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group By
Message
From
11/04/2003 09:05:57
 
 
To
11/04/2003 08:54:56
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00776517
Message ID:
00776521
Views:
16
Group By in VFP8 has changed. It must now match the fields in the select (except for aggregate fields).

Alan

>Hi All:
>
>The following works in VFP 7 but not in 8. What am I doing wrong?
>
>
>cflcode = 'GEG12031'
>SELE flckmast.fm_flcode, grower.gr_shdesc,  ;
>	flckmast.fm_hatched, SUM(hatcinfo.hi_amt)  ;
>	FROM grower ;
>	inner JOIN flckmast ;
>	ON grower.gr_grcode = flckmast.fm_grcode ;
>	inner JOIN hatcinfo ;
>	ON hatcinfo.hi_flcode = flckmast.fm_flcode ;
>	WHERE !EMPTY(flckmast.fm_cycle)  ;
>	AND flckmast.fm_flcode  = cflcode ;
>	GROUP BY hatcinfo.hi_flcode  ;
>	ORDER BY flckmast.fm_farmdlv ;
>	INTO CURSOR "Z" + SUBSTR(SYS(2015) ,3,10)
>
>
>The error message is:
>
>
>SQL: GROUP BY clause is missing or invalid
>
>
>Thanx -
>
>Yossi
Previous
Reply
Map
View

Click here to load this message in the networking platform