<p>If I have 2 query sources how do I find ones that are in one that are not in the other?</p>

<p>example of join to find items in both:</p>

<pre><code>var results = from item1 in qs1.Items
   join item2 in qs2 on item1.field1 equals item2.field2
   select item1;
</code></pre>

<p>So what would the linq code be to return the items in qs1 that are not in qs2?</p>

From
Marco Russo
```
```
NorthwindDataContext dc = new NorthwindDataContext();
dc.Log = Console.Out;
var query =
    from c in dc.Customers
    where !(from o in dc.Orders
            select o.CustomerID)
           .Contains(c.CustomerID)
    select c;
foreach (var c in query) Console.WriteLine( c );
```
```