题解 | 统计快递从创建订单到发出间隔时长
select round(avg(diff),3) as time from( select t1.*,t2.out_time,round(((timestampdiff(minute,t1.create_time,t2.out_time)) / 60),3) as diff from express_tb as t1 inner join exp_action_tb as t2 on t1.exp_number = t2.exp_number) as t;