学到了一个新聚合函数nth_value() with temp as (select exam_id, nth_value(timestampdiff(second, start_time, submit_time), 2) over(partition by exam_id order by timestampdiff(second, start_time, submit_time) desc) - nth_value(timestampdiff(second, start_time, submit_time), 2) over(partition by exam_id order by t...