I have two tables--TableA and TableB.
I want the records from TableA that does not match TableB.
Below is my query. What am I doing wrong?
proc sql;
create table NewTable/*name*/ as
select distinct a.id,a.*
from /*table name*/TableA a left join TableB b
on a.id=b.id
where a.id <> b.id
;
quit;
Thank you for your time.
Donaz
I want the records from TableA that does not match TableB.
Below is my query. What am I doing wrong?
proc sql;
create table NewTable/*name*/ as
select distinct a.id,a.*
from /*table name*/TableA a left join TableB b
on a.id=b.id
where a.id <> b.id
;
quit;
Thank you for your time.
Donaz