DEV Community

loading...

LINQ Group By

jtenos profile image Joe Enos ・1 min read

GROUP BY in SQL is an easy way to calculate sums, averages, counts, max, or min, of a series of data, with subtotals by a particular group. It's a pretty straightforward syntax in SQL.

With LINQ, it's a little bit different. Here's a video showing how to group using LINQ, whether it's for Entity Framework, LINQ-to-objects, or any other LINQ implementation.

Discussion (0)

pic
Editor guide