首页 > 试题广场 >

如下哪些sql语句能查询出每门课都都大于80分的学生姓名,部

[不定项选择题]
如下哪些sql语句能查询出每门课都都大于80分的学生姓名,部分数据如下表(student_score)所示,

stu_no

stu_name

sub_no

sub_name

score

1

张三

001

语文

90

1

张三

002

数学

60

2

李四

001

语文

89

2

李四

002

数学

86

  • select distinct stu_name from student_score where stu_name not in (select distinct stu_name from student_score where score <= 80)
  • select stu_name from student_score group by stu_name having min(score) > 80
  • select distinct stu_name from student_score where score > 80
  • select stu_name from student_score group by sub_name having min(score) > 80
A:子查询语句找出有(至少一门)成绩小于80的学生姓名,主语句要求学生姓名不在子查询的结果中,正确

B:分数最低的一门大于80,正确

C:有一门大于80,就被选中了,不对

D:sub_name应该换成stu_name,否则不对,会报错
发表于 2018-07-25 21:59:02 回复(0)