WITH a AS (SELECT uid, exam_id, score FROM exam_record JOIN examination_info USING(exam_id) WHERE difficulty = 'hard'), b AS (SELECT exam_id, COALESCE(MAX(score),0) AS maximum, COALESCE(MIN(score),0) AS minimum FROM exam_record GROUP BY exam_id) SELEC...