How can I use Proc SQL to find all the records that only exist in one table but not the other?

前端 未结 4 533
伪装坚强ぢ
伪装坚强ぢ 2021-02-06 14:33

I\'m trying to do this in Enterprise Guide, with a task, otherwise I would just use a data step.

In a data step, this would be:

data names;
 input name $         


        
4条回答
  •  情书的邮戳
    2021-02-06 14:58

    Another slight variation is:

    proc sql;
    create table not_in_check as select 
     a.* from names as a left join 
              check as b on
              a.name=b.name
              where b.name is null;
    quit;
    

提交回复
热议问题