Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make a calculation expression based on sum fields in a query

Status
Not open for further replies.

dcorleto

MIS
May 19, 2002
82
US
I have a totals query that sums several fields. I would like to make an additional field that takes three existed "summed" fields and adds or subtracts the values in each. How might I go about this?
 
Code:
SELECT SUM(a) SA, SUM(b) SB, SUM(c) SC,
 
       (SUM(a) + SUM(b) + SUM(c)) SABC

[small]No! No! You're not thinking ... you're only being logical.
- Neils Bohr[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top