for $a = doc("DB1.xml")//doc_key
for $b = doc("DB2.xml")//doc_key
where $a/doc_key_context eq $b/doc_key_context
return ....
From: [email protected]
[mailto:[email protected]] On Behalf Of Gaya Rac
Sent: Tuesday, March 30, 2010 12:07 PM
To: [email protected]
Subject: [MarkLogic Dev General] Inner join
Hi,
Is there a way to perform joins on Mark logic databases?
I've a database:DB1 which has key field
<doc_key doc_key_context="msgr_an" 20021234>
<doc_key doc_key_context="dn" 1234>
I've a second database:DB2 which has same key field
<doc_key doc_key_context="msgr_an" 20021234>
<doc_key doc_key_context="dn" 1234>
How can I return all the matching documents from DB1, DB2.
Thanks, Gayathri
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general