当前位置:网站首页>SQl练习 2022/6/29
SQl练习 2022/6/29
2022-08-04 05:28:00 【Provence°_博】
SQl练习 2022/6/29
175. 组合两个表
题干
代码思路
- join连接
select a.name as Employee
from employee a left join employee b
on a.managerId=b.id
where a.salary>b.salary
181. 超过经理收入的员工
题干
代码思路
- join子句
select a.name as Employee
from employee a left join employee b
on a.managerId=b.id
where a.salary>b.salary
- where子句
select a.name as Employee
from employee a,employee b
where a.managerId=b.id and a.salary>b.salary
边栏推荐
猜你喜欢
ORACLE LINUX 6.5 安装重启后Kernel panic - not syncing : Fatal exception
PHP课堂笔记(一)
Kubernetes基本入门-名称空间资源(三)
剑指 Offer 2022/7/1
flink-sql自定义函数
自动化运维工具Ansible(2)ad-hoc
flink on yarn任务迁移
音视频相关基础知识与FFmpeg介绍
The cost of automated testing is high and the effect is poor, so what is the significance of automated testing?
个人练习三剑客基础之模仿CSDN首页
随机推荐
Vulnhub:Sar-1
强制结束进程
自动化运维工具Ansible(7)roles
记录获取参赛选手信息过程
PHP课堂笔记(一)
CTFshow—Web入门—信息(1-8)
win云服务器搭建个人博客失败记录(wordpress,wamp)
FFmpeg源码分析:avformat_open_input
网络大作业心得笔记
Embedded system driver primary [4] - under the basis of character device driver _ concurrency control
关于事件捕获和事件冒泡的顺序,以及如何处理事件冒泡带来的影响
显式调用类的构造函数(而不是用赋值构造),实现一个new操作
lmxcms1.4
攻防世界MISC—MISCall
Code Refactoring: For Unit Testing
乱码解决方案
Kubernetes基本入门-名称空间资源(三)
原型对象及原型链的理解
CAS与自旋锁、ABA问题
phpexcel导出数据为xml