Calgarypuck Forums - The Unofficial Calgary Flames Fan Community

Go Back   Calgarypuck Forums - The Unofficial Calgary Flames Fan Community > Main Forums > The Off Topic Forum > Tech Talk
Register Forum Rules FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 02-03-2011, 11:53 PM   #1
iggyntangs
Scoring Winger
 
iggyntangs's Avatar
 
Join Date: Oct 2010
Exp:
Default Microsoft Access Basic Question(s)

Hey so I have a database and I created a query to take two values off a table and multiply them to give me a cost.

Now in the same query I want to sum all the costs (which are in separate fields obviously), how can I do this?

Thanks.
iggyntangs is offline   Reply With Quote
Old 02-04-2011, 12:24 AM   #2
username
Powerplay Quarterback
 
username's Avatar
 
Join Date: Feb 2010
Exp:
Default

select sum(cost)
from table
group by XXXX
username is offline   Reply With Quote
Old 02-04-2011, 09:19 AM   #3
calumniate
Franchise Player
 
calumniate's Avatar
 
Join Date: Feb 2007
Location: A small painted room
Exp:
Default

So you obtained cost by multiplying two fields right? You could use a pivot table view at this point to sum that field. (Pivot table view found in bottom right corner)
calumniate is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 12:38 AM.

Calgary Flames
2023-24




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2021