I am kind of new to XML data. I have a regular text field with xml data like....
Attribs
<Variables><Var><N>Email Address</N><V>tom@test.com</V></Var></Variables>
<Variables><Var><N>Email Address</N><V>Bill@test.com</V></Var></Variables>
<Variables><Var><N>Email Address</N><V>Jim@test.com</V></Var></Variables>
<Variables><Var><N>Email Address</N><V>Julie@test.com</V></Var></Variables>
I found where I can convert the field to xml by
select cast(attribs as xml) as test
from userinfo
I want a query to return just the email addresses.
tom@test.com
Bill@test.com
Jim@test.com
Julie@test.com
Thanks
Simi
Attribs
<Variables><Var><N>Email Address</N><V>tom@test.com</V></Var></Variables>
<Variables><Var><N>Email Address</N><V>Bill@test.com</V></Var></Variables>
<Variables><Var><N>Email Address</N><V>Jim@test.com</V></Var></Variables>
<Variables><Var><N>Email Address</N><V>Julie@test.com</V></Var></Variables>
I found where I can convert the field to xml by
select cast(attribs as xml) as test
from userinfo
I want a query to return just the email addresses.
tom@test.com
Bill@test.com
Jim@test.com
Julie@test.com
Thanks
Simi