group by multiple columns sql code example
Example 1: linq group by multiple
group x by new { x.Column1, x.Column2 }
Example 2: linq group by multiple
.GroupBy(x => new { x.Column1, x.Column2 })
Example 3: how to select two columns from table with group by one sql server
SELECT Name, Size, AVG( UnitPrice )
FROM Products
GROUP BY Name, Size;