标题:忙各位大神指点!!!关于查询的.......
只看楼主
IT男year
Rank: 3Rank: 3
等 级:论坛游侠
威 望:1
帖 子:82
专家分:106
注 册:2013-6-9
结帖率:100%
 问题点数:0 回复次数:2 
忙各位大神指点!!!关于查询的.......
查询选修了跟王伟一样课程的学生姓名及成绩?
搜索更多相关主题的帖子: 姓名 课程 
2013-10-13 10:10
IT男year
Rank: 3Rank: 3
等 级:论坛游侠
威 望:1
帖 子:82
专家分:106
注 册:2013-6-9
得分:0 
select sn from s where
not exists(select * from (select cno from s,sc
where s.sno=sc.sno and sn='赵亦') x where
not exists(select * from sc where s.sno=sc.sno
and  )) and sn<>'赵亦'
2013-10-13 11:01
IT男year
Rank: 3Rank: 3
等 级:论坛游侠
威 望:1
帖 子:82
专家分:106
注 册:2013-6-9
得分:0 
select sn from s where
 not exists(select * from (select cno from s,sc
 where s.sno=sc.sno and sn='赵亦') x where
 not exists(select * from sc where s.sno=sc.sno
 and  )) and sn<>'赵亦'
2013-10-13 11:02



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-421813-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.199495 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved