I have table with an XML column which looks like the following. The XML column has some encoded XML inside unencoded XML.
OrderID UserDefXML
1 <Order><OrderDetail><LineItem><ItemName>XYZ</ItemName><Custominfo> <PrimaryName>STACKOVERFLOW </PrimaryName></Custominfo></LineItem></OrderDetail></Order>
I need to extract all the rows which has PrimaryName LIKE 'STACK%'. What should the query be like for this?
