Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Summing up...
Message
 
To
19/08/2000 08:32:44
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00406972
Message ID:
00407068
Views:
24
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform