This is a tough one I know but...
Say I know there are 300 records in TABLE 'emails'
AND that of those records there are 100 in which – somewhere in the FIELD ‘description’ -- is contained an email address (intended recipient of failed email delivery)
Now, I also know that each of those 100 email addresses (for which delivery has failed and contained [WHERE emails.description LIKE %@%]) correspond to 1 of some 4000 records in the TABLE ‘contacts’.
How might I return only the records in TABLE ‘contacts’ WHERE the value of 'contacts.email1' (emailAddress@some.com) is equal to or LIKE the email_string contained within the blob of text in Table/field 'emails.description' ???
or... how might I automate the process of extracting the email addresses from the falure notification (contained in emails.description) and passing them to a new column whereby I may then
Select * FROM contacts
WHERE contacts.email1 = emails.newcolumn
:rolleyes: