题解 | 统计快递运输时长

统计快递运输时长

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;

全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务