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

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
全部评论

相关推荐

LuvSran:是人我吃。老师就是学校呆久了,就业方面啥都不懂,还自以为是为了我们就业好。我学校就一破双非,计科入行率10%都没有,某老师还天天点名,说是出勤率抬头率前排率高了,华为什么的大厂就会来,我们就是不好好上课才没有厂来招。太搞笑了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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