I have two tables master_domain_list
and temporary_domain_list
. master_domain_list
contains a list with columns for the email ID and domain name. temporary_domain_list
also contains the domain
column.
I want to filter temporary_domain_list
to show all domain names which are not present in master_domain_list
.
I tried the following code (inner join inverse) but it's giving the whole list of domains from temporary_domain_list
without removing the domains in master_domain_list
.
$result1=mysqli_query($cons, "
SELECT domain
FROM temporary_domain_list
WHERE domain NOT IN (SELECT domain
FROM master_domain_list)
");