I'm trying to figure out how to selected all of the Suppliers who do not have TV as a product. I'd also like an explanation on the differences of your answer and what I have. I have the following query written:
SELECT XMLColumn.query('/SuppliersList/Supplier/Product[not(@name="TV")]/..')
FROM Tb_XPathQueryTable
This is my table, plus a bunch of other Suppliers.
<SuppliersList>
<Supplier name="Joe">
<City>Paris</City>
<Product name="Airplane"/>
<Product name="Milk"/>
<Product name="TV"/>
<Product name="Orange"/>
</Supplier>