1.获取每日实际销售额
select CONVERT(varchar(10),t1.Created,120),sum(t1.Payment) from Trade t1 where t1.OrderSource=1 and t1.Created>'2017-01-01' and t1.IsVP=0 group by CONVERT(varchar(10),t1.Created,120) order by CONVERT(varchar(10),t1.Created,120)
2.将结果复制到表格进行下一步处理
3.计算周权重销售指数
去掉特殊日期的销售额,然后取各星期的平均销售额,再以最小销售额的星期为最小被除数,求得各星期几的日权重.