3
Answers

Convert SQL to LINQ

Abey Varghese

Abey Varghese

12y
1.2k
1
 Please help me to convert this SQL query to LINQ:

SELECT
EmployeeID, EarningsCode, OtherHours, HourlyRate, OtherPay, PerUnitOvertimeRate,
EarningsFlatAmount
, EarningsDescription
FROM
dbo.tblEmployeeAdditionalPayData
WHERE
EmployeeID IN (SELECT A.EmployeeID
FROM dbo.tblEmployeePersonalData AS A
INNER JOIN dbo.tblEmployeePositionData AS B
ON B.EmployeeID = A.EmployeeID
WHERE A.ActiveCityEmployee = 'Y')
AND
(EarningsCode = 'SD3' OR EarningsCode = 'SD2')
Answers (3)