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

前端 未结 4 724
伪装坚强ぢ
伪装坚强ぢ 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:53

    Here's one way. There are surely many others.

    proc sql;
     create table not_in_check as
     select name
     from names
     where name not in (select name from check);
    quit;
    

提交回复
热议问题