Question
Best Way to calculate totals from query
Could someone point me in the right direction to add up my
data and distinctly show it in my query?
I have a table with the following fields:
id, team_id, compname, teamname, totallost
I want to add up the "totallost" row where the "team_id" and "compname" fields are the same...then show the compname with the sum of the totallost once in my table and determine who is winning.
I have a table with the following fields:
id, team_id, compname, teamname, totallost
I want to add up the "totallost" row where the "team_id" and "compname" fields are the same...then show the compname with the sum of the totallost once in my table and determine who is winning.
