Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL - Group By command
Message
From
02/05/2004 23:08:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SQL - Group By command
Miscellaneous
Thread ID:
00900277
Message ID:
00900277
Views:
70
Hello to All!

I used GROUP BY command in an SQL statement to SUM UP a certain information:

SELECT b.empno, b.start, b.end,;
SUM(b.regpay) AS vregpay, SUM(b.otpay) AS votpay;
FROM Paysumm b WHERE b.period2=CTOD('02/15/2004') GROUP BY b.empno

The code above works perfectly on VFP 6 and 7. However, when I tried executing it on VFP 8, it gave a "SQL: Group By Clause is missing or invalid" error!?

Can you help me on this? Thanks!
Next
Reply
Map
View

Click here to load this message in the networking platform