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

2024-12-03 07:49:01
推荐回答(1个)
回答(1):

select name from stu where name not in(
select name from stu where
fenshu<=80 group by name having
count(*)>肢冲扰=1) group by name先查到任何一门不足80的学生,历旦再排除这判雀些学生