Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
SQL
SELECT     SUM(p.Runs + p.Wickets + p.Catches + p.Runouts) AS points, u.UserId
FROM         tblPlayerUser AS pu INNER JOIN
                      tblUser AS u ON pu.UserId = u.UserId INNER JOIN
                      tblPlayer AS p ON pu.PlayerId = p.PlayerId
GROUP BY u.UserId


This is my sql query to fetch the records.

I want a code which will perform this query's operation in Linq to Sql(C#)
Can Anyone help me
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900