having作用类似于where区别在于where在group by之前执行;having作用于group by。
1 proc sql;2 select sum(cmcc_fee) as sumfee,product_name,port3 from &groupset4 group by product_name,port5 having count(port)>2;6 quit;
|
楼主: lizhewenbei
|
1447
0
[学习分享] 转帖【sas sql proc】where or having |
|
已卖:668份资源 副教授 38%
-
|
| ||
|
|
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


