var categoryCounts = from p in products group p by p.Category into g select new { Category = g.Key, ProductCount = g.Count() };
var q = from c in dsEC09.Employee group c by c.DepartMent into g select new { g.Key, Count = g.Count() };
var Query = from p in DCDC.EMP.GroupBy(p => p.departmentname) select new { count = p.Count(), p.First().departmentname, };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)