题目全部出自 63+最强机经+质素机经。考了60题,其中3道填空,_Global_, CORR, 7。
题目顺序是随机的,63的题目以变形为主,机经基本是原题。
疑惑的只有Inactivate_date is missing 那道,条件描述了:1. 两个data的ID是unique的,并且sort的 2. 数据有match也有不match的。3. inactivate_date is missing 出来的数据即是新员工(有点儿忘了)。然后给了Query:
proc sql;
select A.id, salary from A full join B on A.id=B.id where inactivate_date is missing; (没用coalesce())
这里注意ID column只选了A.ID。
然后问产生同样output,咋整?
data xx; merge A (in=ina)B(in=inb);select statement; by ID;run;
A. where inactivate_date is missing;
if (ina and inb);
B. if inactivate_date ne. and (ina and inb);
C. if inactivate_date ne.;
D where inactivate_date is missing and (ina or inb);
大家可以研究下,消灭98%,全面100%。
机经在附件,感谢前辈们的分享!祝各位一切顺利!
SAS Advanced 07:02:2019.pdf
(184.44 KB, 需要: 1 个论坛币)



雷达卡






京公网安备 11010802022788号







