My query doesn’t work, because this MA_CVE_VTA appears in my final result , it’s not must happens, but when I remove blank spaces the query the query is OK.
Anyone knows some function for remove blank spaces from XML tag?
Whitespace within XML element content is “significant”. This means “00001” and " 00001 " are different values. The “proper” solution here is to get the source system to not put extraneous whitespace in the value.
But I suspect you’ll say “the source system cannot be changed.” It isn’t a matter of removing the spaces from the data (I don’t think you can) as much as allowing them to exist and still match. The brute force way: