Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Summing up...
Message
 
À
19/08/2000 08:32:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00406972
Message ID:
00407068
Vues:
25
Hello,

If you have only one table you can use the statement Trey Walpole suggested.
If you have two tables e.g. customers and orders then you have to make a relation form the order table to the customer table to get the names.

SELECT customer.name, SUM(orders.balance) AS balance_sum ;
FROM orders;
INNER JOIN customers;
ON customer.customerID = orders.customerID;
GROUP BY 1;
INTO .....

Hope this works,

KW

PS. Sorry for responding so late, but i'm new on this site and still finding handy things on the UT everyday.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform