SQL查询出每门课都大于80 分的学生姓名

 Course表如下:

查询出每门课都大于80 分的学生姓名有两种方法。

1.select  distinct name from Course where name not in (select distinct name from Course where score<=80) 

 

2.select  name    from Course group by name having min(score)>80

 

posted on 2017-01-10 16:45  王月波  阅读(9705)  评论(0编辑  收藏  举报

导航