select f.city, f.driver_id, format(avg_socre,1) avg_grade, format(count(e.order_id)/count(distinct date_format(e.order_time,'%Y%m%d')),1) avg_order_num, format(sum(e.mileage)/count(distinct date_format(e.order_time,'%Y%m%d')),3) avg_mileage from tb_get_car_order e, ( select * from ( select ...