select exam_id, duration, release_time from (select t.exam_id, duration, release_time, row_number() over(partition by t1.exam_id order by t1.difftime desc) as ranking from examination_info t inner join ( select a.exam_id, timestampdiff(second,a.start_time,a.submit_time) as difftime fro...