I am trying to create a view. I need to find a way to sum column "b", but only for rows that have the same value in column "a" ie:
a b sum
1 3 5
1 2 5
2 1 3
2 2 3
I cant figure out how the query will work for that. I am figuring a subquery, but any help or direction would be great.
a b sum
1 3 5
1 2 5
2 1 3
2 2 3
I cant figure out how the query will work for that. I am figuring a subquery, but any help or direction would be great.