只想到用外连接 然后用判断null 来确定哪些 学生没有选课,想了解 不用外连接要怎么做 这个
2条回答 默认 最新
- xtasce2012 2022-04-17 16:59关注
--查询没有选课的学生
--方法一:
select t.sno,t.sname from student t where not exists
(select 1 from score t1 where t.sno=t1.sno);--方法二:
select t.sno,t.sname from student t where t.sno not in
(select t1.sno from score t1 );本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 2无用 2