I'm trying to figure out how to extract the AccountNumber
on one of my columns with below sample value:
><AccountNumber>12345678</AccountNumber><Links>http://test@test123.com
the string length before and after the account number varies.
I have tried below code but the i cant figure out how to just extract the AccountNumber
. Even the account number has different lengths.
Select substring(XmlData,
charindex('><AccountNuber',XMLData),
50 )
from Item with(nolock)