So, I have a table like this:
id mod n1 n2 n3 1 1 1 1 1 2 2 1 3 3 2 1 1 2 2 2 3 1 1
And I want to sum each value for all rows for a specific identifier in the total number of column calls, but I do not want to group the identifier together because they have a different mod number. I want to get this result:
id mod total 1 1 7 1 2 7 1 3 7 2 1 3 2 2 3 3 1 1
I cannot use a group because it will give me the total for only each individual row. How to achieve the result I want?
source share