Hi ,
I not able to write this sql query in LINQ C# . I want this query in c# linq pl zz z reply
select distinct [someclomn1] from table1 where [someclomn1] NOT IN (SELECT someclomn2 FROM table2)
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Harpreet60 reputationPosted Nov 1, 2015, 11:53 PM EST
Nishant MittalRank #692 · 3.5K reputationPosted Nov 2, 2015, 12:35 AM EST
Nishant MittalRank #692 · 3.5K reputationPosted Nov 2, 2015, 12:42 AM EST
Harpreet60 reputationPosted Nov 2, 2015, 12:58 AM EST
Ravi PatelRank #439 · 5.7K reputationPosted Nov 2, 2015, 2:16 AM EST
where
!
(from n in db.table2
select new {
n.someclomn2
}).Contains(new { someclomn1 = ()m.someclomn1 })
select new {
m.someclomn1
}).Distinct()
Jignesh TrivediRank #16 · 50.3K reputationPosted Nov 2, 2015, 6:17 PM EST
Harpreet60 reputationPosted Nov 2, 2015, 10:41 PM EST
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Nov 2, 2015, 11:02 PM EST
Harpreet60 reputationPosted Nov 3, 2015, 10:15 PM EST
Harpreet60 reputationPosted Nov 3, 2015, 10:30 PM EST
Annad Kumar37 reputationPosted Nov 23, 2015, 3:54 AM EST