2个回答
展开全部
student--学生表
student_id,
student_name,
student_no
course--课程表
course_id,
course_name
sc--选课信息表
student_id,
course_id
select *
from student
where student_id not in
(select student_id
from sc
where course_id in
(select course_id from course where course_name = '1号课程'))
student_id,
student_name,
student_no
course--课程表
course_id,
course_name
sc--选课信息表
student_id,
course_id
select *
from student
where student_id not in
(select student_id
from sc
where course_id in
(select course_id from course where course_name = '1号课程'))
2018-01-03
展开全部
SELECT Sname
FROM Student
WHERE NOT EXISTS
(SELECT *
FROM SC
WHERE Student.Sno=SC.Sno AND Cno='1');
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询