Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GROUP BY clause is missing or invalid
Message
 
 
To
04/05/2004 15:04:47
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00900885
Message ID:
00900890
Views:
17
This message has been marked as the solution to the initial question of the thread.
>The first statement works. The second returns "SQL: GROUP BY clause is missing or invalid." How could this be?
>
>
>SELECT LastName FROM Agent GROUP BY Lastname
>SELECT * FROM Agent GROUP BY Lastname
>
Jay,

You've to include all non-aggregate fields into GROUP BY.
It's documented in VFP8 help under Behavior Changes Since Visual FoxPro 7.0 and in INFO: SQL SELECT Behavior Changes in Visual FoxPro 8.0 mskb #813361.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform