LINQ in Action roller

LINQ to a DataTable to Group and Aggregate Data

Hi All, I have a DataTable that contains Agent Data. An example of what the table looks like: ---------------------------------------- Agent Group Duration Matt 1 25 Matt 1 30 Matt 2 10 Bill 1 30 Bill 1 20 ----------------------------------------- What I want to do is write a LINQ command to group the data on Agent and Group, while summing the Duration, so that my return set would look something like: ---------------------------------------- Agent Group Duration Matt 1 55 Matt 2 10 Bill 1 50 ---------------------------------------- Read More...
Published Wednesday, January 30, 2008 1:34 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication