select round(sum(订单金额)/count(*),1) avg_amount, round(sum(优惠金额)/count(*),1) avg_cost from ( select oo.order_id, date(event_time), total_amount 订单金额, sum(price*cnt) 商品总金额, sum(price*cnt)-total_amount 优惠金额 from tb_order_overall oo join tb_...