TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Abey Varghese
NA
18
9.4k
Convert SQL to LINQ
Jan 17 2013 4:08 PM
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'
)
Reply
Answers (
3
)
Linq to XML. Select particular descendants.
LINQ Basics