NEWBIE question - Joining db's
Wednesday, 22 June 2011 · 2 messages
MS
Hi Craig,
sure - joining is possible, maybe you could post some example code?
The general idea is:
for $x in doc('db1')
for $y in doc('db2')
where $x/@id eq $y/@id
return <r>
<x>{$x}</x>
<y>{$y}</y>
</r>Hope this helps to get you started :-)
Michael
Quoted text · Craig Girard · 9 lines
Am 22.06.2011 um 17:19 schrieb Craig Girard: > Is there a way in basex to join 2 databases together? I have 2 databases I would like to join based on an ID. I have found examples in xquery but they don't seem to work in basex. > > Thank you for your time, > > Craig_______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
CG
Craig Girard22 Jun 2011 19:20 #
Is there a way in basex to join 2 databases together? I have 2 databases I would like to join based on an ID. I have found examples in xquery but they don't seem to work in basex.
Thank you for your time,
Craig
Written for BaseX 6.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery