having作用类似于where区别在于where在group by之前执行;having作用于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     having count(port)>2;
6 quit;

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-07
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案