Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GROUP BY: missing clause
Message
 
À
21/12/2006 16:28:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01179682
Message ID:
01179684
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>What is wrong with this SELECT statement? I am getting "SQL: GROUP BY clause missing or invalid" error message. Please help... Thanks, Sam
>
>
>SELECT VENID_55, COMNAM_08, SUM(COST_55*TNXQTY_55) AS STDCOST, ;
>	SUM(ORDCST_55*TNXQTY_55) AS POCOST ;
>FROM VRSUMINV1 ;
>GROUP BY VENID_55 ;
>ORDER BY VENID_55 ;
>INTO CURSOR VRSUMINV2
>
In VFP9 a SELECT that has a GROUP BY all fields in the field list must be either aggregate functions or part of the group by clause. Your statement has the field COMNAM_08 listed which is neither an aggregate nor part of the group by.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform