Hi all,
I am trying to create a table as a copy of a "father table" based on two WHERE conditions that make reference to a "parent table". In particular, I've wrote:
proc sql;
create table SON_TABLE as
select *
from FATHER_TABLE
where
person_ID not in (select person_ID from PARENT_TABLE)
and
DATE not in (select DATE from PARENT_TABLE);
quit;
I know for sure that the table should be populated but it shows zero rows instead. I guess something is wrong in how the conditions are stated.
May anyone explain me how can i fix this?
Thank you in advance