获得缺考“物理”科目(UTB_EXAM_SCORE没有对应记录)的学生信息,输出班级、学生姓名
2014-10-25 21:28:50 访问(1661) 赞(0) 踩(0)
-
select
cl.TheName as '班级',
s.TheName as '学生姓名'
from
UTB_EXAM_CLASS cl,
UTB_EXAM_STUDENT s left join
(
select sc.StudentId,sc.ID
from
UTB_EXAM_SCORE sc,
UTB_EXAM_COURSE c
where
sc.CourseId = c.ID
and c.TheName = '物理'
)r on s.ID = r.StudentId
where
r.ID is null
and
cl.ID = s.ClassID
order by cl.TheName asc, s.TheName asc
标签:
获得缺考“物理”科目(UTB_EXAM_SCORE没有对应记录)的学生信息,输出班级、学生姓名 


上一条:
下一条:
相关评论
发表评论