I have a Reports table with column a, b and c:
Example:
Country, Product, Value
US, GR1, 2
US, GR2, 2
US, GR3, 2
US, GR1, 2
US, GR3, 2
US, GR3, 2
UK, GR1, 2
UK, GR2, 2
UK, GR3, 2
UK, GR1, 2
UK, GR3, 2
UK, GR3, 2
I load the data into a ReportsCollection using the GetMulti function.
How do I get aggregates like:
- SUM Value group by Country
- SUM Value group by Country and Product
- SUM Value group by Product
...without having to call the database again or create a stored procedure?