Scroll to Top

Ginktage

Learn , Blog

How to get the MAX row with group by in Lambda Expression using C# ?

Below is a sample code snippet demonstrating how to retreive the max row with the group by in Lambda Expression using C# . For example , assume that the table name is employee and we want to retreive the maximum experience based on the designation . In SQL Query , we would do something like this Select max(experience) as experience, Designation from Employee Group BY Designation How...