What I'm trying to do is extract 'To' addresses from what appears to be XML type code (within a SQL database), in order to create a column containing just the email addresses, using SQL.
I have seen similar posts on your site but using Oracle.
An extract from the content of the field is below
toAddress;deliveryOptionEnum;deliveryOptionAddressSMTPArray;226;<value xsi:type="SOAP-ENC:Array" SOAP- ENC:arrayType="bus:addressSMTP[2]">
<item xsi:type="bus:addressSMTP">Blah@Blah.com</item>
<item xsi:type="bus:addressSMTP">hi.d@hi.co.uk</item>
</value>
ccAddress;deliveryOptionEnum;deliveryOptionAddressSMTPArray;226;<value xsi:type="SOAP-ENC:Array" SOAP- ENC:arrayType="bus:addressSMTP[2]">
<item xsi:type="bus:addressSMTP">Blah1@Blah1.com</item>
<item xsi:type="bus:addressSMTP">hi1.d@hi1.co.uk</item>
</value>
bccAddress;deliveryOptionEnum;deliveryOptionAddressSMTPArray;226;<value xsi:type="SOAP-ENC:Array" SOAP- ENC:arrayType="bus:addressSMTP[2]">
<item xsi:type="bus:addressSMTP">Blah2@Blah2.com</item>
<item xsi:type="bus:addressSMTP">hi2.d@hi2.co.uk</item>
</value>
subject;deliveryOptionEnum;deliveryOptionString;69;<value xsi:type="xsd:string">Manager Email</value>
The result of the selection I would want is below
ID | To Address
------+---------------
47383 | Blah@Blah.com
47383 | hi.d@hi.co.uk
Note I'm not interested in the 'ccAddress', the 'bccAddress' or the 'Subject', at this stage.
Any assistance would be greatly appreciated