I’d like to do a subtraction of sets based on criteria. A pseudo-query would look like:
select table1.columnn1
,table1.column2
from table1, table2
where (table1.column1.value1 not in table2.column1
and
table1.column2.value2 not in table2.column2)
I can make it to about here:
dim list = From tbl1 In table1 Where tt.column1 ...
And from there I don’t know what to do.
Have a look at the
Exceptstandard query operator in LINQ. This produces the set difference of two sequences.http://msdn.microsoft.com/en-us/library/system.linq.enumerable.except.aspx
You might also use the
Containsoperator to achieve what you want, as per the sample below: