I want to contact my users via email using my database. I want to make sure that I don't accidentally contact the same user twice. For that, I have a table that tracks who got contacted and when.
When I do my MYSQL query I want to select emails from the the email
table and make sure none of those entries exists in the contacted
table.
To phrase it in a sentence: select email from Email_Table if they are not in Contacted_Table
Perhaps there is a completely different approach. I am open to all suggestions :)Thank you :)
Try this
OR
If you try to do a left join like this:
You will get a similar result:
Your goal is to get those record which do not have a match in the
contacted
table, so your query would be: