Converting sql query to EF query - nested query in from
- by vdh_ant
Hey guys
Just wondering how the following sql query would look in linq for Entity Framework...
SELECT KPI.*
FROM KeyPerformanceIndicator KPI
INNER JOIN (
SELECT SPP.SportProgramPlanId
FROM SportProgramPlan PSPP
INNER JOIN SportProgramPlan ASPP
ON (PSPP.SportProgramPlanId = @SportProgramPlanId
AND PSPP.StartDate >= ASPP.StartDate
AND PSPP.EndDate <= ASPP.EndDate
) AS SPP
ON KPI.SportProgramPlanId = SPP.SportProgramPlanId
Cheers
Anthony