当前位置: 代码迷 >> Sql Server >> 大家看看这个查询如何写
  详细解决方案

大家看看这个查询如何写

热度:88   发布时间:2016-04-27 12:43:43.0
大家看看这个查询怎么写?



查询“至少选修了学号为109的学生选修的全部课程的学生号”

------解决方案--------------------
SQL code
select a.snofrom score ainner join (select cno from score where sno='109') bon a.cno=b.cno and a.sno<>'109'group by a.snohaving count(*)>=(select count(*) from (select cno from score where sno='109'))
  相关解决方案