proc sql;
select ID, firstname, count(distinct ID) as t_salary
from sasuser.pilots
group by ID
order by firstname;
quit;
为什么有group by又有order by呢?是按这两个变量排序吗?
那为什么不放在一起,写成group by ID firstname或者
order by ID firstname呢?谢谢!
![](https://bbs-cdn.datacourse.cn/static/2017/f68.png)
楼主: 1061047021
|
1884
2
[问答] proc sql问题 |
高中生 67%
-
|
| ||
| ||
京ICP备16021002-2号 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明