Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Total on
Message
 
 
À
16/09/2003 15:36:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00829598
Message ID:
00829606
Vues:
30
>Can i get SELECT to produce the same results as TOTAL ON? I tried with GROUP BY but it did not sum up the values. What am I doing wrong?

In additon to GROUP BY you also have to use SUM() function for the fields you want to get total on.
SELECT keyfld, SUM(fld1), SUM(fld2), ...
  GROUP BY keyfld
...
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform