Convert SQL with multiple join into LINQ
问题 I would like to know how can i change the following sql statement into Linq or Lambda Extension in C# SELECT m.mdes as AgeGroup,COUNT(DISTINCT(mbcd))as "No.of Member" FROM mageg m LEFT JOIN (select distinct(mbcd) ,mage FROMtevtl JOIN mvipm ON tevtl.mbcd = mvipm.mvip WHERE datm >= '2014-04-01' AND datm <= '2014-04-30' )vip ON m.tage >= vip.mage AND m.fage <= vip.mage GROUP BY m.mdes I manage to do the first half of the LINQ statement. Not sure If it is correct here is the first half. I do not