找出每个学生超过他自己选修课程平均成绩的课程号

SELECT sno,
cno
FROM sc ,
(SELECT sno,
avg(grade)
FROM sc
GROUP BY sno) AS avg_sc(avg_sno,avg_grade)
WHERE sc.sno=avg_sc.avg_sno
AND sc.grade>=avg_sc.avg_grade