方法1:

查出科目成绩有小于80分的学生姓名,再约束并去重学生不等于查出来的姓名

select distinct A.name from t_score A where A.name not in(select distinct B.name from t_score B where B.fenshu <=80)

方法2:

按学生姓名分组,且最小的分数要大于80分

select A.name from t_score A group by A.name having min(A.fenshu)>80 

相关文章:

  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2021-07-24
  • 2021-12-13
猜你喜欢
  • 2021-09-24
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2021-07-21
相关资源
相似解决方案