I am writing this in C# using .NET 3.5. I have a System.Data.DataSet object with a single DataTable that uses the following schema:
Id : uint AddressA: s
most efficient solution would be to do the sum in SQL directly
select AddressA, SUM(bytes) from ... group by AddressA