[xquery-talk] outer join between 2 sequences

Ihe Onwuka ihe.onwuka at gmail.com
Sun Sep 28 08:52:19 PDT 2014


On Sun, Sep 28, 2014 at 2:25 PM, <wolfgang at exist-db.org> wrote:

> I won't say too much more about this as I have been discussing it with
> Wolfgang this morning, and I think he will shortly post you a very
> fast example when using XQuery 3.1 Maps in eXist…
>
>
> Well, Michael already posted something along those lines, but here’s my
> solution based on the public 3.1 draft:
>
> xquery version "3.0";
>
> let $a := 1 to 1000000
> let $b := map:new((1 to 100) ! map:entry(xs:int(util:random() * 100000),
> 0))
> return
>     $a[map:contains($b, .)]
>
> Wolfgang
>

Would this not be $a[not(map:contains($b, .))] since I want the ones for
which there is no matching sequence B.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://x-query.com/pipermail/talk/attachments/20140928/4b15e785/attachment.html>


More information about the talk mailing list