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

LEFT JOIN in XQuery Tamino

  • 1.  LEFT JOIN in XQuery Tamino

    Posted Wed September 07, 2005 07:29 PM

    How can I do a “LEFT JOIN (sql)” or “RIGHT JOIN (sql)” betweend two schemes the only join way that I know result in a “INNER JOIN”

    thanks.


    #API-Management
    #webMethods
    #Tamino


  • 2.  RE: LEFT JOIN in XQuery Tamino

    Posted Fri September 09, 2005 04:53 PM

    I don’t know SQL so I’m not sure I understand the difference between LEFT JOIN and INNER JOIN, but I think you might want to compare these two queries:

    for $x in input()/x, $y in input()/y
    where $x/key = $y/key
    return <xy> {$x, $y} </xy>
    for $x in input()/x
    return <x-suby> { $x, for $y in input()/y
    where $y/key = $x/key
    return <sub-y> {$y} </sub-y> } </x-suby>

    #Tamino
    #API-Management
    #webMethods