09 MySQL--操作真题

1.

用一条 SQL 语句,查询出每门课程都大于 80 分的人。

分析:

  1. 去重查询出存在课程小于 80 分的人,设为集合A
  2. 查询不在集合 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)

2

相关推荐
JosieBook14 小时前
【数据库】MySQL 实战精通系列 · 第6篇:InnoDB 存储引擎、日志与崩溃恢复
数据库·mysql
FYKJ_201017 小时前
django电影推荐系统55066-计算机课程设计、毕业设计
vue.js·spring boot·python·mysql·typescript·spark·django
这个DBA有点耶20 小时前
MySQL字符集与排序规则深入:索引失效的隐蔽场景与排查方法
数据库·mysql·代码规范
闲云自留地21 小时前
从下载到登录:MySQL 在两大系统上的完整安装教程
数据库·mysql
fengkai45451 天前
十一、MySQL 第 1‑3 章
运维·数据库·mysql
Lancker1 天前
记一次 Druid 连接 MySQL 报 Communications link failure 的排查过程
数据库·mysql·adb
自强的小白1 天前
mybatis_plus的核心功能(条件构造器)
mysql
JosieBook1 天前
【数据库】MySQL 实战精通系列 · 第11篇:Redis 缓存与 MySQL 一致性实战
数据库·mysql·缓存
guo_wen_qiang1 天前
云服务器mysql分库分表环境搭建(2库4表)
数据库·mysql·docker
FYKJ_20101 天前
springboot鲜花销售系统91056-计算机课程设计、毕业设计
vue.js·spring boot·后端·python·mysql·django·课程设计