当前位置:网站首页>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
边栏推荐
- Scientific research: are women better than men?
- Simple use of devtools
- Eight days of learning C language - while loop (embedded) (single chip microcomputer)
- Anchor free series network yolox source code line by line explanation Part 2 (a total of 10, ensure to explain line by line, after reading, you can change the network at will, not just as a participan
- 平台入驻与独立部署优缺点对比
- The latest blind box mall, which has been repaired very popular these days, has complete open source operation source code
- 为什么腾讯阿里等互联网大厂诞生的好产品越来越少?
- Utilisation simple de devtools
- LeetCode 234. Palindrome linked list
- Daily question 2 12
猜你喜欢
TCP security of network security foundation
Design of kindergarten real-time monitoring and control system
Single box check box
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
New interesting test applet source code_ Test available
Use of kubesphere configuration set (configmap)
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Talk about the SQL server version of DTM sub transaction barrier function
Ubantu disk expansion (VMware)
Azkaban安装部署
随机推荐
2021 Li Hongyi machine learning (1): basic concepts
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Pdf things
问下,这个ADB mysql支持sqlserver吗?
Huawei MPLS experiment
Acwing第 58 场周赛【完结】
Vb+access hotel service management system
[Yu Yue education] National Open University autumn 2018 8109-22t (1) monetary and banking reference questions
[deep learning] deep learning reference materials
Qrcode: generate QR code from text
LeetCode 234. Palindrome linked list
Machine learning experiment report 1 - linear model, decision tree, neural network part
IPv6 experiment
El tree whether leaf node or not, the drop-down button is permanent
Port, domain name, protocol.
有个疑问 flink sql cdc 的话可以设置并行度么, 并行度大于1会有顺序问题吧?
el-select,el-option下拉选择框
Design and implementation of high availability website architecture
Idea inheritance relationship
Watch the online press conference of tdengine community heroes and listen to TD hero talk about the legend of developers