用一条SQL语句查询出每门课都大于80分的学生姓名

SQL数据库浏览:268收藏:0
答案:
name kecheng fenshu
张三 语文 81
张三 数学 75
李四 语文 76
李四 数学 90
王五 语文 81
王五 数学 100
王五 英语 90

答案:
A:select distinct name from score where name not in (select distinct name from score where fenshu <=80)
B:select distinct t1.name from score t1 where 80< all (select fenshu from score t2 where name=t1.name);
C:select distinct name from score t1 where not exists (select * from score t2 where t2.name = t1.name and t2.fenshu < 80);