I have the following table that holds a column which is in XML:
Id | Label | Details |
---|---|---|
1 | Test1 | <terms><destination><email>[email protected]</email><email>[email protected]</email></destination><content>blabla</content></terms> |
2 | Test2 | <terms><destination><email>[email protected]</email><email>[email protected]</email></destination><content>blabla</content></terms> |
I would like a query that produces the following output:
Id | Label | Destination |
---|---|---|
1 | Test1 | [email protected], [email protected] |
2 | Test2 | [email protected], [email protected] |
Any clue on how I can concat the XML email node values as a column along the related columns (Id and Label)? Thanks ahead