I have a stored SQL procedure, which has declared xml variable with this kind of structure
<a>
<b>4</b>
<b>18</b>
<b>2</b>
</a>
I need to do something like UPDATE a SET b=b-1 WHERE b>@MyIntVariable
for this XML data. What is the best way to do it in MS Transact SQL?