现有不同类型产品每天的销售额,怎么求不同产品每月平均销售额?
参考:https://help.fanruan.com/finebi/doc-view-4.html
数据集计算,sqlserver
select sum(销售额)/month(getdeta()) from b
where year(日期)='2023'
group by 产品,year(日期)