I’m looking for an XQuery that will take:
<root>
<entity>
<entityid>1</entityid>
<sometext>this is some text</sometext>
</entity>
<entity>
<entityid>1</entityid>
<sometext>this is some more text</sometext>
</entity>
</root>
And produce a recordset like:
Entityid sometext
1 this is some textthis is some more text
Essentially, combining the values in the ‘sometext’ nodes while grouping by the entityid. I figured I might be able to accomplish this with loops, but wasn’t sure if there was a better way, possibly with a join/group by
Result: