找出每个学生超过他课程平均成绩的课程号
我可以这样做么SELECTsno,cnoFROMSCGROUPBYsnoHAVING(grade>=AVG(grade));...
我可以这样做么
SELECT sno ,cno
FROM SC
GROUP BY sno
HAVING (grade>=AVG(grade)); 展开
SELECT sno ,cno
FROM SC
GROUP BY sno
HAVING (grade>=AVG(grade)); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询