select t1.pday, round( t1.pwc,2), round( t1.pqx,2) from( select t.pday, avg(t.wc)over(order by t.pday range interval 6 day PRECEDING) as pwc,#求每日完成单前7天的平均数 avg(t.qx)over(order by t.pday range interval 6 day PRECEDING) as pqx #求每日未完成单前7天平均数 from( select date(tr.order_time) as pday,#每日的订单日期 count(case...