W
Wes Henry
Hi,
I have a query that I am trying to run that will add the sums of
different records in multiple columns. I'm sure that this doesn't make
sense so here is what I am trying to do. Let's say that it's like this:
Team 1 Team 2 Team 1 Points Team 2 Points
Arizona Denver 31 27
Arizona California 4 15
Dallas Arizona 13 18
New York Chicago 23 19
So, what I am trying to do is for every record where, for example,
Arizona is listed in either the [Team 1] or [Team 2] columns that it
will take it's respective score [Team 1 Points] or [Team 2 Points] and
add it up to make one total: 54 in this example. I know that I can do
one query that adds up the totals of one column [Team 1] which would
equal to 35. If I did this twice and then had a third query which added
the first two queries together then I could get the ultimate result of
what I am looking for (Hope this makes sense!)
I am hoping that there is an expression that I can use to only have one
query get the ultimate result that I am looking for. Any help would be
much appreciated.
Thanks,
Wes Henry
I have a query that I am trying to run that will add the sums of
different records in multiple columns. I'm sure that this doesn't make
sense so here is what I am trying to do. Let's say that it's like this:
Team 1 Team 2 Team 1 Points Team 2 Points
Arizona Denver 31 27
Arizona California 4 15
Dallas Arizona 13 18
New York Chicago 23 19
So, what I am trying to do is for every record where, for example,
Arizona is listed in either the [Team 1] or [Team 2] columns that it
will take it's respective score [Team 1 Points] or [Team 2 Points] and
add it up to make one total: 54 in this example. I know that I can do
one query that adds up the totals of one column [Team 1] which would
equal to 35. If I did this twice and then had a third query which added
the first two queries together then I could get the ultimate result of
what I am looking for (Hope this makes sense!)
I am hoping that there is an expression that I can use to only have one
query get the ultimate result that I am looking for. Any help would be
much appreciated.
Thanks,
Wes Henry