mysql数据库怎么改?
SELECT
branch_office '分公司名称',date_format(create_time,'%Y-%m') as '年月',COUNT(*) as sum
from project_fundamentals_information
where state='1'
GROUP BY branch_office,date_format(create_time,'%Y-%m')
https://blog.csdn.net/qq_36654629/article/details/98595763 参考
简单方法,写两个数据集,本月和上月的,在单元格做对比