Hi all,
This is example of table
id type count
1 A 2
1 A 3
1 B 5
2 A 1
2 B 2
3 C 3
3 C 4
How to make SQL select command that will make sum of filed "count". But it must sum rows that have same id and type.
The result should look like this:
id type count
1 A 5
1 B 5
2 A 1
2 B 2
3 C 7
How to do that with sql command?
This is example of table
id type count
1 A 2
1 A 3
1 B 5
2 A 1
2 B 2
3 C 3
3 C 4
How to make SQL select command that will make sum of filed "count". But it must sum rows that have same id and type.
The result should look like this:
id type count
1 A 5
1 B 5
2 A 1
2 B 2
3 C 7
How to do that with sql command?