I have following tables:
base:
id | domain
extended:
id | domain | country_code
countries:
id | country_code | country_name
banned_domains:
id | domain
I will have several thousands (more than 500K) of domains in banned_domains. Now I need to fetch data "domain, country_code and country_name" which do not exist on banned_domains list. I am not so good at the MySQL JOINS, can anyone guide me for the proper query.