I have written the sql that brings back the correct data,is it possible for this query to be converted to linq
select d.departmentId,round(cast(sum(score)as decimal(10,2))/(SELECT sum(score) FROM table),2)
From table t
--joins etc
GROUP BY departmentId