Download LinqPad and complete these simple linq / lambda queries. Its very easy to compare SQL and the equivalent Linq / lambda result set.
You start with
select Age, Name from People group by Age, Name
Then open another tab
var ages = (from p in Peoples group p by p.Age into g select g); ages.Dump();
Then open another tab
var ages = Peoples.GroupBy(p => p.Age); ages.Dump();
source share