I want to retrieve the data based on equaling to resourceID
,I have writtten below query
SELECT t.* FROM customerservice_store t WHERE
existsNode(t.RESPONSE,'/customerDetailsResponse/resources/physicalDevice/@resourceId="bharath"','xmlns="http://sso.message.upc.com"') ='1';
SELECT t.* FROM customerservice_store t WHERE
existsNode(t.RESPONSE,'/customerDetailsResponse/resources/physicalDevice/@resourceId="bharath"','xmlns="http://sso.message.upc.com"') ='1';
existsNodeseems to be Oracle... Anyway - by guessing - I get the feeling, that you are not looking for the existance of your resourceID anywhere, but you rather want to find the node, where the@resourceIdequals a given value. Read aboutXQuery predicates. You might try something like..... /physicalDevice[@resourceId="xyz"]/ ...