各コースのためのSQL文を使用してチェックアウトすることは、学生の80名以上であります

名前kecheng fenshu
ジョー・スミス81中国の
張数学75の
ジョン・ドウ76個の言語
Doeの90数学の
王81の5つの言語
王数学100
Wangwu英語90

解決策1:検索80学生の名前<= 80生徒の名前、生徒の名前がこれらの中ではないです>

select distinct name from table where name not in(
select distinct name from table where fenshu<=80)

対処方法2:> 80点学生の名前、最低のスコアを見つけます

select name from (select name,min(fenshu) from table group by name having min(fenshu) > 80) table

おすすめ

転載: www.cnblogs.com/ButterflyEffect/p/12083810.html