CURRICULUM .课程编号 你 写的CURRICULUM 和点中间有个空格,看见没?
最后一行也是这个位置也是同样问题
GRADE.课程编号=CURRICULUM .课程编号 这个位置也是
select e.学号,e.姓名,f.课程编号,f.分数 from STUDENT e,
(select c.学号 学号,c.分数 分数,d.课程编号 课程编号 from GRADE d,
(select b.学号,MAX(a.分数)分数 from GRADE a,STUDENT b
where a.学号=b.学号 group by b.学号) c
where c.学号=d.学号
and c.分数=d.分数) f
where e.学号=f.学号
SELECT STUDENT.学号,姓名,CURRICULUM .课程编号,MAX(分数)分数
FROM GRADE JOIN STUDENT ON GRADE.学号=STUDENT.学号 JOIN CURRICULUM ON GRADE.课程编号=CURRICULUM .课程编号
where (STUDENT.学号,分数) in(SELECT STUDENT.学号,MAX(分数)分数
FROM GRADE JOIN STUDENT ON GRADE.学号=STUDENT.学号 JOIN CURRICULUM ON GRADE.课程编号=CURRICULUM .课程编号
GROUP BY STUDENT.学号 )