|
|
|
|
|
|
b******s 发帖数: 345 | 1 The following SAS program is submitted:
data work.empsalary;
set work.people(in=inemp) work.money(in=insal);
if insal and inemp;
run;
The SAS data set work.people has 5 observations, and the data set work.money
has 7 observations.
How many observations will the data set work.empsalary contain?
A. 0
B. 5
C. 7
D. 12
Answer: A
我怎么觉得是D啊,请知道正确答案的讲解下,谢谢!!! | s******r 发帖数: 1524 | 2 set work.people(in=inemp) work.money(in=insal);
by XXXXXX;
baozi
money
【在 b******s 的大作中提到】![](/moin_static193/solenoid/img/up.png) : The following SAS program is submitted: : data work.empsalary; : set work.people(in=inemp) work.money(in=insal); : if insal and inemp; : run; : The SAS data set work.people has 5 observations, and the data set work.money : has 7 observations. : How many observations will the data set work.empsalary contain? : A. 0 : B. 5
| b******s 发帖数: 345 | 3 你的意思是 set语句后面紧跟着BY?
谢谢回复!包子已发。
【在 s******r 的大作中提到】![](/moin_static193/solenoid/img/up.png) : set work.people(in=inemp) work.money(in=insal); : by XXXXXX; : baozi : : money
| y********0 发帖数: 638 | 4 查一下in=的意思就知道了.
if insal and inemp 是说the new obs can be found in both the datasets.
但是set a b只是简单的concatenate ,就是两个数据接起来.永远都是
insal=1,inemp=0 或者insal=0,inemp=1组合.
money
【在 b******s 的大作中提到】![](/moin_static193/solenoid/img/up.png) : The following SAS program is submitted: : data work.empsalary; : set work.people(in=inemp) work.money(in=insal); : if insal and inemp; : run; : The SAS data set work.people has 5 observations, and the data set work.money : has 7 observations. : How many observations will the data set work.empsalary contain? : A. 0 : B. 5
| b******s 发帖数: 345 | 5 谢谢!
【在 y********0 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 查一下in=的意思就知道了. : if insal and inemp 是说the new obs can be found in both the datasets. : 但是set a b只是简单的concatenate ,就是两个数据接起来.永远都是 : insal=1,inemp=0 或者insal=0,inemp=1组合. : : money
|
|
|
|
|
|
|