[xquery-talk] Collections - family relationships

Andrew Welch andrew.j.welch at gmail.com
Mon Jan 6 03:39:48 PST 2014


> collection($sp:reviewsColl)/descendant::reviews[not(review[2])]
>
> but reviews has a @person attribute and that person may have 1 or more
> reviews in another collection - so that doesn't work.

In your collection of collections, group on @person then count the
size of the group.

-- 
Andrew Welch
http://andrewjwelch.com


More information about the talk mailing list