Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Group by clause
Message
 
 
À
09/11/2005 15:42:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01066947
Message ID:
01066953
Vues:
12
Paul,

There's no aggregating function like sum(quantity) and you need to group by everything that isn't an aggregating function.

Basically older VFP style "group by" clauses will not work in SQL Server nor in VFP9 because it's become more SQL standards compliant.

>Hello,
>
>In Northwind database for orderdetails table:
>
>SELECT orderid,productid,quantity as quantity FROM orderdetails GROUP BY productid ORDER BY productid,orderid
>
>Why always give an error ?
>
>SQL: group by clause missing or invalid
>
>TIA
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform