Query Totals

T

tryn2learn

I have 7 categories each with 10 sub categories.
(Example) main group is: “Personalâ€
sub groups under “Personal†are

Billing
Letters
Fin State
Post
NCO
Can/Terms
Mech
FldPol
FltPol
Cut

is it possible to run a query that will looks at all the subgroups under the
main group and give me totals for each?

(example)

Personal:

Billing - $$$.$$
Letters - $$$.$$
Fin State- $$$.$$
Post- $$$.$$
NCO- $$$.$$
Can/Terms- $$$.$$
Mech- $$$.$$
FldPol- $$$.$$
FltPol- $$$.$$
Cut- $$$.$$
 
K

Klatuu

Use a totals query. You can do that in the query builder by clicking on the
totals icon. It looks like the Greek letter Sigma.

The use Group By for the group and Sum for the subgroups.
 
K

KARL DEWEY

Use a total query like this ---
SELECT Your_Table.Personal, Sum(Your_Table.Cost) AS SumOfCost
FROM Your_Table
GROUP BY Your_Table.Personal;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top