that is my first question on Stack. I am looking for an efficient way to group and sum values inside a row. My data in row is distributed that way: 10000 10 20000 20 40000 12 60000 23 10000 12 40000 17. I need a result: 10000 22 20000 20 40000 29 60000 23. Big numbers are characteristics, smaller - occurences.
Thats my real data - for example for 10004 I need 23. I tried with loops, aggregate, but I cannot do this.