I want to select the records from the Orders table. It contains the OrderXML as XML type column.
if OrderXML has order with status given by user then it should select the record. I am trying following query but not working -
SELECT *
FROM ORDER
WHERE ORDERXML.EXISTS('/Order/header/status/text()="Processing"') = 1