NEWBIE question - Joining db's

Wednesday, 22 June 2011 · 2 messages
MS
Michael Seiferlein reply to Craig Girard, 22 Jun 2011, 19:2022 Jun 2011 17:45 #
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

⚡Generated with XQuery