My own problem
- I have the table (course) and the another(training).
In course table- id no, coursecode, .....
In training table - idno, name , nationality, ......
I want to retrieve the number(count) of coursecode which is in same id no and the nationality will be "American".
The number of coursecode should be less than 2.
I want to implement this by LINQ statement.
If you want to help me, kindly help me. Thanks a lot :-)


Bhushan BhasmeRank #2,348 · 604 reputationPosted Jun 18, 2015, 2:46 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 18, 2015, 2:54 AM EDT
Asp.Net HeinRank #6,010 · 279 reputationPosted Jun 18, 2015, 5:45 PM EDT
Bhushan BhasmeRank #2,348 · 604 reputationPosted Jun 19, 2015, 12:45 AM EDT
var dealercontacts = from course in Course join Tr in Training on course.IdNo equals Tr.IDNo where tr.Nationality='American' select count(*); Hope This Might Help YouAsp.Net HeinRank #6,010 · 279 reputationPosted Jun 19, 2015, 1:15 AM EDT
Sakthikumar ThanavelRank #1,235 · 1.4K reputationPosted Jun 18, 2015, 3:38 AM EDT