How to add second condition to the following query?
SELECT c.value('@tray','VARCHAR(MAX)')
FROM @L_XML.nodes('/XDOC/DOC[@TYPE="Q"]') T(c)
so that I could filter on attribute: type = Q or S?
Where Can I find a detailed manual about xml nodes?