1.

用一条 SQL 语句,查询出每门课程都大于 80 分的人。
分析:
- 去重查询出存在课程小于 80 分的人,设为集合A
- 查询不在集合 A 中的人
sql
# 第一步:找小于等于80分的学员姓名
select distinct name from t_student where fenshu <= 80
# 第二步:not in
select distinct name from t_student where name not in(select distinct name from t_student where fenshu <= 80)