34,873
社区成员
发帖
与我相关
我的任务
分享select student.学号,姓名,课程名称,分数
from student,grade,curriculum
where student.学号=grade.学号 and grade.课程编号=curriculum.课程编号
and not exists
(select 1 from grade as tb where grade.学号=tb.学号 and tb.分数>grade.分数);with sqlbd as
(select a.学号,a.姓名,b.课程名称,c.分数
from student a,grade b,curriculum c
where a.学号=b.学号 and b.课程编号=c.课程编号
)
select * from sqlbd t
where not exists(select * from sqlbd where 学号=t.学号 and 分数>t.分数)