Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group By
Message
From
08/10/2007 13:26:42
 
 
To
08/10/2007 13:24:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01259496
Message ID:
01259498
Views:
20
This message has been marked as the solution to the initial question of the thread.
>Has anyone had a problem with the group by in Select Sql command. Per the help file My syntax is correct but it keeps erroring out the Group By is invalid. Here is the Syntax
>
>SELECT order_no,client_no;
> FROM cr_Assig;
> WHERE !cr_assig.check_performed;
> AND cr_assig.start_date<=DATE();
> AND EMPTY(cr_assig.end_date);
> GROUP BY order_no;
> INTO CURSOR temp1

need to have all fields in the group by (i.e. GROUP BY order_no, client_no;) if not in a function. update: check message#1191849 for more explanation.

since vfp 8.

HTH
Beth
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform