当前位置:网站首页>MySQL winter vacation self-study 2022 11 (10)
MySQL winter vacation self-study 2022 11 (10)
2022-07-05 03:13:00 【Crane paper thousand】
-- practice
-- 1, Return the name of the Department that owns the employee , Department number
select distinct dname,dept.deptno from dept join emp on dept.deptno = emp.deptno;
-- 2, Pay more than smith Employee information
select * from emp where sal > (select sal from emp where ename = 'smith');
-- 3, Return the employee's name and manager
select a.ename,b.ename from emp a join emp b on a.mgr = b.empno;
select a.ename,b.ename from emp a,emp b where a.mgr = b.empno;
-- 4, Return the name of the employee and his / her manager whose employment date is earlier than that of his / her manager
select a.ename,a.hiredate,b.hiredate,b.ename from emp a join emp b on a.mgr = b.empno and a.hiredate<b.hiredate;Let's start with this , Too sleepy , Make up tomorrow
边栏推荐
- Asemi rectifier bridge 2w10 parameters, 2w10 specifications, 2w10 characteristics
- Simple use of devtools
- Master Fur
- [200 opencv routines] 99 Modified alpha mean filter
- Kuboard
- 2021 Li Hongyi machine learning (1): basic concepts
- GFS分布式文件系统
- FBO and RBO disappeared in webgpu
- Dart series: collection of best practices
- [micro service SCG] 33 usages of filters
猜你喜欢

IPv6 experiment

2.常见的请求方法

为什么腾讯阿里等互联网大厂诞生的好产品越来越少?

ELK日志分析系统

Spark SQL learning bullet 2

2. Common request methods

About MySQL database connection exceptions

Pytest (4) - test case execution sequence

Ubantu disk expansion (VMware)

Voice chip wt2003h4 B008 single chip to realize the quick design of intelligent doorbell scheme
随机推荐
About MySQL database connection exceptions
2021 Li Hongyi machine learning (2): pytorch
Apache build web host
Elfk deployment
Idea inheritance relationship
The database and recharge are gone
New interesting test applet source code_ Test available
Master Fur
Design and implementation of campus epidemic prevention and control system based on SSM
Design and implementation of community hospital information system
Why is this an undefined behavior- Why is this an undefined behavior?
Devtools的簡單使用
Kubernetes -- cluster expansion principle
IPv6 experiment
LeetCode 234. Palindrome linked list
2021 Li Hongyi machine learning (3): what if neural network training fails
LeetCode --- 1071. Great common divisor of strings problem solving Report
Devtools的简单使用
040. (2.9) relieved
Bumblebee: build, deliver, and run ebpf programs smoothly like silk