Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Total on
Message
 
 
To
16/09/2003 15:36:44
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00829598
Message ID:
00829606
Views:
29
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform