Dell - Internal Use - Confidential
Hi All,

//Query to join 2 xml files

<books-with-prices>
  {
    for $b in doc()//book,
        $a in doc()//book1
    where $b/title = $a/title
    return
        <book-with-prices>
            { $b/title }
            <price-bstore2>{ $a/price/text() }</price-bstore2>
            <price-bstore1>{ $b/price/text() }</price-bstore1>
<year-bstore1>{ $b/year/text() }</year-bstore1>
<date-bstore1>{ $b/date/text() }</date-bstore1>
        </book-with-prices>
  }
</books-with-prices>

I have executed this query successfully on Query Console. The requirement is to 
write a MODULE for the same query so that it can be used for scheduling. How to 
specify URI root(database) while scheduling the task?

[cid:[email protected]]

Priyanka L
Senior Engineer - BIG DATA
Business Innovation Services - BIDW
Dell Services
Email:[email protected]| Mobile:+91 9945785355



<<inline: image001.jpg>>

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to