这道题得到结果的前置条件是先要计算出平均分,然后在所有分数中找出大于平均分的分数,再从这些分数中取最小值;
所以有两个字段一定是必须的分别是:score 和avg(score) ,
取最小值可以让最后符合条件的分数升序排列,取第一个数据

select score from (select score,avg(score) over() as avg from exam_record join examination_info using(exam_id) where tag='SQL')t where t.score>=t.avg order by score asc limit 1