I have a SQL query that puts records from one DE to another DE if that record does not exists in the second DE. The base works fine for me and i have the following query:
select t.Emailaddress
from [All_subscribers_totaal] t
where t.Emailaddress not in (
select p.Emailaddress
from [Pak_t_Nieuws] p
)
But when i try to add another DE (so i want to check if a record does not exists in DE A AND B AND C etc)it does not work even i don't get an error like so:
select t.Emailaddress
from [All_subscribers_totaal] t
where t.Emailaddress not in (
select p.Emailaddress
from [Pak_t_Nieuws] p
)
OR t.Emailaddress not in (
select pm.Emailaddress
from [Pak_t_Nieuws_Medewerkers] pm
)
Is there something i missed?
Thanks