with dt_num as ( select substr(order_time,1,10) as dt ,sum(case when start_time is null then 1 else 0 end) as cancel_num ,sum(case when start_time is not null then 1 else 0 end) as finish_num from tb_get_car_order group by substr(order_time,1,10) ) select dt ,round(sum(finish_num)/count(before_dt),...