题解 | 统计快递运输时长
统计快递运输时长
https://www.nowcoder.com/practice/bb4196936f15424dbabe76a501186d91
SELECT exp_type, ROUND(AVG(TIMESTAMPDIFF(MINUTE, out_time, in_time)/60),1) AS time FROM exp_action_tb a LEFT JOIN express_tb e ON a.exp_number = e.exp_number GROUP BY exp_type ORDER BY time;