select coalesce(max(max_grade),0)
from exam_grade
where examinee_id = 12345
and exam_id = 1;
查询某个考生在某个指定试卷的最高分,如果没有,则返回0
select coalesce(max(max_grade),0)
from exam_grade
where examinee_id = 12345
and exam_id = 1;
查询某个考生在某个指定试卷的最高分,如果没有,则返回0