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
点赞 评论

相关推荐

求求给个offer我...:有这60不如v我50
点赞 评论 收藏
分享
不愿透露姓名的神秘牛友
昨天 11:29
已编辑
斯卡蒂味的鱼汤:知道你不会来数马,就不捞你😂最近数马疯狂扩招,招聘要求挺低的,你能力肯定够,应该就是因为太强了,知道你不会来才不捞你
投递腾讯云智研发等公司10个岗位
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务