Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group By missing or invalid?
Message
 
 
To
29/11/2005 14:06:20
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01072942
Message ID:
01072945
Views:
23
>I get the above message with the following sql statement:
>
>
>  SELECT MAX(trackrcd.date), ALLTRIM(trackrcd.t_s_num) FROM trackrcd ;
>	WHERE ALLTRIM(trackrcd.client_id) == thisform.idclient AND;
>	ALLTRIM(trackrcd.prjt_num) == thisform.idproj AND ;
>	ALLTRIM(trackrcd.task_num) == thisform.idtask ;
>	INTO ARRAY datearray
>
>
>Anyone know why? This is not a group by situation.

How can you use MAX if there is no GROUP BY? Also don't use ALLTRIM in your select statement.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform