题解 | 统计快递运输时长
统计快递运输时长
https://www.nowcoder.com/practice/bb4196936f15424dbabe76a501186d91
select et.exp_type as exp_type,
round(avg(timestampdiff(minute, eat.out_time, eat.in_time)/60), 1) as time
from express_tb as et
left join exp_action_tb as eat on et.exp_number = eat.exp_number
group by et.exp_type
order by time
查看7道真题和解析