Hi All,
I am trying to do a JOIN where the EmailAddress in one table is LIKE the one in the first table. Reason is some of the addresses where concatenated (not by me) and I want to test for a match.
My challenge is how to use the LIKE '%something%' where the something it the field name in the one table. As such:
SELECT max8.maxID, houselist.HLEmailAddress AS HLE, max8.EmailAddress, houselist.Processed
FROM houselist, max8
WHERE max8.EmailAddress LIKE '%HLE%' AND houselist.Processed='0'
Note the max8 table has 1.8 million records, and the houselist has 160,000.
What my final goal it to lookup the email addresses in the max8 table from houselist, then get their max8.maxID then update the houselist with that ID and mark them as processed and mark the max8 table with a modified date.
My issue is I got this to work with individual queries, (with a small sample houselist) but it times out (set to 60 seconds) before it completes the large list.
Does that make sense?
I appreciate the help,
regards,
Don