Question : Combine query results and total.

So I have a table basically like this below:
 
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
MachineNumber          TotalRed      TotalWhite
12                      34               12
10                      45               21
5                       44               33
12                      46               41
12                      21               11
10                      19               32
10                      67               6
4                       11               12
5                       44               11


Only there are thousands of entries. What I am trying to do is combine all the like machine numbers and the total their parts produced.  I know I can create a column in the query to sum the red and white parts, but I am having trouble with grouping all the machine numbers together. Hope that makes sense. Any help on this would be greatly appreciated. Thanks for your help.

Answer : Combine query results and total.

you mean:
1:
2:
3:
select machinenumber, sum(totalred), sum(Totalwhite)
from yourtable
group by machinenumber
Random Solutions  
 
programming4us programming4us