论述题
4.
用一条SQL语句查询出每门课都大于75分的学生姓名,表名为score,表格式见下表。
score表
name
course
mark
张三
语文
81
张三
数学
75
李四
语文
76
李四
数学
90
王五
语文
81
王五
数学
100
王五
英语
90
【正确答案】
select distinct name from score a where not exists(select*from score b where b.name=a.nameand b.mark<=75)。
【答案解析】
提交答案
关闭