这个题怎么做呀,求大佬解答

全部评论
select brand ,least(a.time_all,a.time_one) from (select brand ,min(start_time) as start_min ,max(end_time) as end_min ,max(end_time)-min(start_time)+1 as time_one ,sum(end_time-start_time+1) as time_all from t group by brand ) a
点赞 回复 分享
发布于 01-08 13:53 北京

相关推荐

牛客279957775号:铁暗恋
点赞 评论 收藏
分享
可可可可可_:nb啊,看样子是专科玩了几年随便专升本了个民办,又玩了两年。你这能找到我吃
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务