Don't you ever call me that in public again!
Yes sir. Another query built off of your first. go for the sum of the sum fields. Quick and easy! Gord
ghubbell@total.net
Ok, as I understand, you want the first query
select sum(*) as x from xxx group by yyy
this will select differemnt sum for each yyy from table xxx.
select sum(*) from xxx will select the sum of all elements.
If you want a subquery, I don't know exactly how is it in access but in SQLServer you can do
select sum(t.x)
from
(select sum(*) as x from xxx group by yyy) as t
John Fill
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.