<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 28, 2014 at 12:42 PM, Ihe Onwuka <span dir="ltr"><<a href="mailto:ihe.onwuka@gmail.com" target="_blank">ihe.onwuka@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Sun, Sep 28, 2014 at 12:32 PM, Adam Retter <span dir="ltr"><<a href="mailto:adam.retter@googlemail.com" target="_blank">adam.retter@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>> I have sequence A consisting of the numbers 0 to 4000000 and sequnce B<br>
> consisting of about 100k random I numbers within the range of sequence A and<br>
> I want the outer join where sequence B is "null".<br>
<br>
</span>There is no 'null' in XQuery, so I am not quite sure what you mean<br>
here. If you ware looking for all values that appear in sequence A and<br>
sequence B, then you can do the following -<br>
<br>
$a[. = $b]<br>
<span><br></span></blockquote><div><br></div><div><br></div></span><div>I meant null in the SQL sense of outer join - sorry. </div><div><br></div><div>I want to drop the things that are in B from A where both B and A are just sequences of integers. In other words, don't fetch what I've already got.</div><span class=""><div><br></div></span></div></div></div></blockquote><div><br></div><div><br></div><div>Pah... incorrect snippage in the last post. </div><div><br></div><div><br></div><div style="font-family:arial,sans-serif;font-size:13px">Of course that would be $a[not(. = $b)]  maybe even $a except $b, I was asking more on what the performance expectation would be.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">Pleased that it reasonable to expect it to be fast.</span> </div></div></div></div>