这题盯了一个小时,第三点一直过不去先看错误代码 with t1 as ( select order_id, sum(price*cnt) total from tb_order_detail group by order_id ) select round(avg(total_amount), 1) avg_amount, round(avg(total - total_amount), 1) avg_cost from ( select order_id, total_amount, total, event_time, m...