Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GROUP BY clause is missing or invalid
Message
From
11/09/2006 12:41:48
 
 
To
11/09/2006 12:39:57
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01152777
Message ID:
01152779
Views:
16
>I’m getting:
>
>SQL: Group By clause is missing or invalid
>
>when I try opening views which were OK in VFP7.0 .
>
>Can anyone shed any light on the subject?


GROUP BY has been tightened in VFP8 to be more ANSI SQL compliant. You have to list all (non-agregate) columns:
SELECT Field1, Field2, SUM(Field3) ;
GROUP BY Field1, Field2 ;
INTO CURSOR temp


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform