Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GROUP BY on expression
Message
From
10/04/2003 03:00:30
Walter Meester
HoogkarspelNetherlands
 
 
To
10/04/2003 02:56:30
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00775899
Message ID:
00775904
Views:
16
Michel,
? SQLExec(lnHandle,"SELECT YEAR(AddDate) AS Test FROM News GROUP BY YEAR(AddDate)")
should work

Walter,

>>did you try grouping on a fieldnumber ?
>>
>>
>>? SQLExec(lnHandle,"SELECT YEAR(AddDate) AS Test FROM News GROUP BY 1")
>>
>
>From all my tests so far, SQL Server don't support a group by by using an integer as a reference. I only succeeded when using existing field names.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform