select round(avg(avg1),1) as avg_amount ,round(avg(sum2-avg1),1) as avg_cost from ( select order_id,avg(total_amount)avg1,sum(price*cnt)sum2 from (select order_id,uid,total_amount,event_time,rank() over(partition by uid order by event_time) as ranking from tb_order_overall)t join tb...