Hi,
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.email 1 is mentioned in the attachment.text column.
I therefore tried the following query:
This is returing the correct value only if there isn't any other text in the attachment.text column, which is not the fact.
Anyone that can help me with this?
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.email 1 is mentioned in the attachment.text column.
I therefore tried the following query:
Code:
SELECT candidate_id FROM candidate, attachment WHERE email1 IN(attachment.text)
Anyone that can help me with this?
Comment