I'm having troubles with the following:
I have 2 tables, Candidates and Attachments. In the Candidate there is a column called email1.
In the Attachment table, there is a column called Text filled with text. Somewhere in this text there is a email address mentioned (which is email1).
I want to find the records where candidate.email1 is mentioned in the attachment.text column.
I therefore tried the following query:
Expand|Select|Wrap|Line Numbers
- SELECT candidate_id FROM candidate, attachment WHERE email1 IN(attachment.text)
Anyone that can help me with this?