Varshini S
asked on
Group By Using Linq
I have the below object List<Employees>
EmployeeID
Name
Designation
DOB
DOJ
Department
How do I use linq to group by the output like below
Designation NoOfEmployees
Sales 250
Marketing 100
Finance 25
HR 15
EmployeeID
Name
Designation
DOB
DOJ
Department
How do I use linq to group by the output like below
Designation NoOfEmployees
Sales 250
Marketing 100
Finance 25
HR 15
ASKER
Department
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Are you wishing to group on Designation or Department?