with u_tb as ( # 查询等级为7的uid select uid from user_info where level = '7' ) , e_avg_tb as ( # 查询SQL试卷的试卷平均分 select uid, round(avg(score),0) s_avg from exam_record e inner join ( select * from examination_info where tag = 'SQL' ) ei on e.exam_id ...