select '北京'as city ,round(avg(flag),3),round(avg(qian),3)from(select driver_id ,count(order_id)flag ,sum(fare)qian from tb_get_car_order join tb_get_car_record using(order_id) where city='北京'and date_format(order_time,'%Y%m%d') between '20211001'and '20211007' group by driver_id having flag>=3)t1...