In the below example, I need a FOR XML query to say when the actionswords are the same, then combine the content under one node.
Currently I have this:
<Actionword actionword="Bangs">
<Content>Your heavy swing forces something to break off your opponent and snaps past you through the air...</Content>
</Actionword>
<Actionword actionword="Bangs">
<Content>...a crushing overhand strike leaves your foe both broken and defeated.</Content>
</Actionword>
<Actionword actionword="Bangs">
<Content>...a crushing overhand strike leaves your foe both broken and defeated.</Content>
</Actionword>
(note how there is a <Actionword> node between each <content> node. Even though the action word is the same.
I need this :
<Actionword actionword="Bangs">
<Content>Your heavy swing forces something to break off your opponent and snaps past you through the air...</Content>
<Content>...a crushing overhand strike leaves your foe both broken and defeated.</Content>
<Content>...a crushing overhand strike leaves your foe both broken and defeated.</Content>
</Actionword>
My source table is denormalized and stores a new row for each distinct content.
The table structure is simply two fields, Actionword (nvarchar(max)) and [Content] (nvarchar(max)).