IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How to join 2 documents which have two different collections

  • 1.  How to join 2 documents which have two different collections

    Posted Tue November 15, 2005 04:30 PM

    Hi,

    I have a database (DB) where there are 2 differents collections (dbcoll1 and dbcoll2). Every collection have differents data and in a xquery I must join the 2 collections because I need some data form 2 collections.

    How can I join two differents collections in a xquery?

    Thank you for your help.

    C


    #API-Management
    #webMethods
    #Tamino


  • 2.  RE: How to join 2 documents which have two different collections

    Posted Tue November 15, 2005 07:09 PM

    If you have at least Tamino 4.2, you can use the collection() function:

    for $d1 in collection('dbcoll1')/doc1, $d2 in collection('dbcoll2')
    where $d1/key = $d2/key1
    return <result>{$d1, $d2}</result>

    #webMethods
    #Tamino
    #API-Management


  • 3.  RE: How to join 2 documents which have two different collections

    Posted Tue November 15, 2005 08:25 PM

    Hi Curtis,

    In fact, I have the Tamino version 4.4.1 and your response answers to my question. It’s that I need.

    Thank you for your help!

    C


    #API-Management
    #Tamino
    #webMethods