Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6 to VFP9, SQL error message
Message
 
 
To
17/08/2006 21:53:10
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01146620
Message ID:
01146623
Views:
19
>SQL:GROUP BY Clause is missing or invalid

>
>SELECT *,;
>	SUM(IIF(Mode="B",BAGS,0))AS BAGS,;
>	SUM(IIF(Mode="L",BAGS,0))AS LOSE,;
>	SUM(WEIGHT) AS unfix_kg,;
>	SUM(W_KG) AS unfix_a;
>	WHERE BETWEEN(DATE,F_DATE1,T_DATE1);
>	FRoM AVLBOOK;
>	ORDER BY ACC_CODE;
>	GROUP BY ACC_CODE;
>	INTO CURSOR XYZ
>
Replace the * with ACC_CODE in your SELECT field list. Also, you can SET ENGINEBEHAVIOR 70 prior to the command and leave as is.
Del
Previous
Reply
Map
View

Click here to load this message in the networking platform