-- 请你找到高难度SQL试卷得分平均值大于80并且是7级的红名大佬,统计他们的2021年试卷总完成次数和题目总练习次数,只保留2021年有试卷完成记录的用户。结果按试卷完成数升序 with t as( select uid,exam_id,avg(score) as sc from exam_record where year(start_time) = 2021 group by uid,exam_id ), a as ( select t.uid,count(ifnull(t.exam_id,0)) as exam_cnt from t left...