Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GROUP BY on expression
Message
De
10/04/2003 03:00:30
Walter Meester
HoogkarspelPays-Bas
 
 
À
10/04/2003 02:56:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00775899
Message ID:
00775904
Vues:
13
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform