公司有多个,取各个公司当月的实际和累计数怎么写
要用开窗函数
参考
https://blog.csdn.net/renkejia1988/article/details/132396459
最后加这个
group by company,st_ym