I have a XML column in a table that looks like this:
<word A="al" B="h" C="Ps" />
<word A="has" B="es" C="Pf" />
<word A="mom" B="es" C="Ph" />
I want to update this field like this:
<word A="al" B="B1" C="C1" />
<word A="has" B="B2" C="C1" />
<word A="mom" B="B2" C="C2" />
I want to do by a function in SQL Server.
Thanks!