题解 | #第二快/慢用时之差大于试卷时长一半的试卷#

https://www.nowcoder.com/practice/b1e2864271c14b63b0df9fc08b559166

有大神能给看看下面这段为什么一直显示空白呀,没有什么错误就是没有输出正确答案😥看了半天也没看出来个所以然😥😔

select ei.exam_id,duration,release_time
from examination_info ei
join(
select distinct exam_id,start_time,submit_time,
row_number() over(partition by exam_id order by timestampdiff(second,start_time,submit_time)) fast_2,
row_number() over(partition by exam_id order by timestampdiff(second,start_time,submit_time) desc) slow_2
from exam_record
where submit_time is not null) a
on ei.exam_id = a.exam_id
where fast_2 = 2 and slow_2 = 2
and (slow_2-fast_2)*2 > duration 
order by ei.exam_id desc
全部评论

相关推荐

10-21 00:37
已编辑
山东大学 C++
小浪_Coding:你问别人,本来就是有求于人,别人肯定没有义务免费回答你丫, 有点流量每天私信可能都十几,几十条的,大家都有工作和自己的事情, 付费也是正常的, 就像你请别人搭把手, 总得给人家买瓶水喝吧
点赞 评论 收藏
分享
酷酷的喜马拉雅山:感觉这比一直在初筛不动的好多了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务