| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: XQuery question
"Costin Cozianu" <c_cozianu_at_hotmail.com> wrote in message
news:b9r0ob$lsfb5$1_at_ID-152540.news.dfncis.de...
> Give me the XML query that will give me the trnasitive closure for this
one:
>
> <node id=1 />
> <node id=2 parent_id=1 >
> <!-- ... and so on ... -->
(: transitive closure over $nodes of node with id 23 :)
transitive-closure($nodes, "id", "parent", $nodes[id=23])
The definition of transitive-closure is really none of your business.
Bob Received on Tue May 13 2003 - 16:09:40 CDT
![]() |
![]() |