10.查询没有学全所有课的同学的学号、姓名
select sid,snamefrom Student stwhere (select count(*)from SC scWhere st.sid=sc.sid) < (Select Count(*) From Course);Student表:SC表:Teacher表:Course表:
·
select sid,sname
from Student st
where (
select count(*)
from SC sc
Where st.sid=sc.sid
) < (Select Count(*) From Course);
Student表:
SC表:
Teacher表:
Course表:
更多推荐
已为社区贡献1条内容
所有评论(0)