I have a table1
Deptno Skills 1 1 1 2 1 3 2 1 2 3 3 1 3 2
I need to insert the skills value as a child node to an XMl column in table2 with respect to matching Deptno
Tried using
UPDATE
Dept
SET
XMLColumn.modify('insert ('Skills 2 /Skills)
as last into
(/Skills[1])
') where deptno = 1
But how can I use other table values and nest them into table2 xml column?