1 proc sql; 2 select sum(cmcc_fee) as sumfee,product_name,port 3 from &groupset 4 group by product_name,port; 5 quit;
在group by 后可以有多个维度。
1 proc sql; 2 select sum(cmcc_fee) as sumfee,product_name,port 3 from &groupset 4 group by product_name,port; 5 quit;
在group by 后可以有多个维度。