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

前端 未结 4 532
伪装坚强ぢ
伪装坚强ぢ 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 15:02

    proc sql;
     create table inNamesNotIncheck
     as
     select *
     from names n
     where not exists
     (select name
     from check c
     where n.name=c.name);
    quit;
    

提交回复
热议问题