mysql学习打卡day22

今日成果:

sql 复制代码
select * from employees
where salary > (select avg(salary) from employees);
-- 查询超过平均工资的员工

select * from clients
where client_id not in (select  distinct client_id from invoices);
-- 查询没有发票的用户 

感谢各位读者查阅,欢迎各位👍点赞✍评论⭐收藏+关注!

相关推荐
Dxy12393102165 小时前
MySQL如何高效查询表数据量:从基础到进阶的优化指南
数据库·mysql
Dying.Light5 小时前
MySQL相关问题
数据库·mysql
AI视觉网奇5 小时前
3d数字人 ue blender 绑定衣服对齐 2026
学习·ue5
Nan_Shu_6145 小时前
学习: Blender 基础篇
学习·blender
奶茶精Gaaa6 小时前
工具分享--json在线转换工具
学习
Re.不晚6 小时前
MySQL进阶之战——索引、事务与锁、高可用架构的三重奏
数据库·mysql·架构
wdfk_prog6 小时前
[Linux]学习笔记系列 -- [drivers][I2C]I2C
linux·笔记·学习
盐焗西兰花6 小时前
鸿蒙学习实战之路-Reader Kit自定义字体最佳实践
学习·华为·harmonyos
麦聪聊数据6 小时前
为何通用堡垒机无法在数据库运维中实现精准风控?
数据库·sql·安全·低代码·架构
近津薪荼7 小时前
dfs专题5——(二叉搜索树中第 K 小的元素)
c++·学习·算法·深度优先