My Database table having 1 Lakh record where as below query is not giving the output since 30 mins. Please suggest.
SELECT name, xname.value('(AttributeRequest/@value)[1]', 'VARCHAR(100)') AS MemberOfValue
FROM
(SELECT name,cast(attributes as xml) AS XCol FROM identityiq.identityiq.spt_identity_request) AS T
CROSS APPLY
XCol.nodes('//Attributes/Map/entry/value/ProvisioningProject/MasterPlan/ProvisioningPlan/AccountRequest') AS XNodes(xname)
WHERE
xname.value('(AttributeRequest/@value)[1]', 'VARCHAR(100)') LIKE '%QSDTEAMADMIN%'