Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select - SQL in VFP6 & VFP8
Message
From
14/09/2004 05:51:01
 
 
To
14/09/2004 05:35:38
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00941825
Message ID:
00941828
Views:
18
Hi Don,

I suggest you read the Behavior changes since Visual Foxpro 7.0 under What's new in Visual FoxPro 8.0, Language Enhancements. In VFP8 the SQL syntax for GROUP BY was changed in order to ONLY comply with the ANSI standard. A GOOD thing in deed, although it means that if you had old code which did not comply with the ANSI standardm but which was supported by VFP7 and earlier, you must rewrite some of your SELECT statements.

>SELECT inv_mas.inv_no, inv_mas.inv_date, inv_mas.amount, sum(rct_tran.amount) as ytdpaid ;
> FROM aidata!inv_mas inner JOIN aidata!rct_tran ;
> ON Inv_mas.inv_no = Rct_tran.inv_no ;
> GROUP BY 1;
> INTO DBF cInv
>
>The above SQL command is perfectly working in VFP6. But when I tried it in VFP8 it gives me the following error message.
>
> SQL: GROUP BY clause is missing or invalid.
>
>Can anyone help me please?
>
>Don
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform