• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 128
  • Last Modified:

Sum field from multiple records

Is there a way to add one field from a database.
Ex. The field Ending_Balance. Adding this field from every record for a grand total into another field. Using SQL I can not find a way. Is there another way.
0
robhas
Asked:
robhas
1 Solution
 
lawnrangerCommented:
USE an SQL Aggregate function (SUM in this case) as in;

SELECT SUM(Ending_Balance) AS Total_Balance FROM YourTable WHERE Month=6
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now