上午刚考完,题目没有变化。因为这个月要上班了,所以花了很多时间看prep guide,个人认为最重要的三块是 SQL,MACRO和Advanced SAS programming Tech。
题目全部出自 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%。
机经在附件,感谢前辈们的分享!祝各位一切顺利!