Perform Grouping of Resultsets in Code, not on Database Level
- by NinjaBomb
Stackoverflowers,
I have a resultset from a SQL query in the form of:
Category Column2 Column3
A 2 3.50
A 3 2
B 3 2
B 1 5
...
I need to group the resultset based on the Category column and sum the values for Column2 and Column3. I have to do it in code because I cannot…