select dt,round(finish_num/7,2) finish_num_7d, round(cancel_num/7,2) cancel_num_7d from (select distinct date(order_time) dt, (select sum(if(start_time is null,0,1)) from tb_get_car_order where timestampdiff(day,date(order_time),dt) between 0 and 6 ) finish_num, (select sum(if(start_time is null,1,0...