Don't know where to insert group by what I tried
var filteredResult1 = from s in employeelist
group s by s.Department into s
where s.totalscore > 0 && s.totalscore < 400
select s.employeeID;
With this code I got the error :
Error 2 'System.Linq.IGrouping' does not contain a definition for 'totalscore' and no extension method 'totalscore' accepting a first argument of type 'System.Linq.IGrouping' could be found (are you missing a using directive or an assembly reference?)
My question is, how can I translate select employeeID where totalscore > 0 && totalscore < 400 group by department from employeelist
into Linq statement.