当前位置:网站首页>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
边栏推荐
- Single box check box
- Asp+access campus network goods trading platform
- 平台入驻与独立部署优缺点对比
- Spark SQL learning bullet 2
- Monitoring web performance with performance
- Usage scenarios and solutions of ledger sharing
- 返回二叉树中两个节点的最低公共祖先
- ELFK部署
- Comparison of advantages and disadvantages between platform entry and independent deployment
- Tiny series rendering tutorial
猜你喜欢
Simple use of devtools
VM in-depth learning (XXV) -class file overview
[200 opencv routines] 99 Modified alpha mean filter
2. Common request methods
Vb+access hotel service management system
Acwing game 58 [End]
Port, domain name, protocol.
Sqoop installation
Azkaban installation and deployment
College Students' innovation project management system
随机推荐
Kubernetes - identity and authority authentication
Six stone programming: advantages of automated testing
Cette ADB MySQL prend - elle en charge SQL Server?
Talk about the SQL server version of DTM sub transaction barrier function
Kubernetes - identity and authority authentication
IPv6 experiment
Voice chip wt2003h4 B008 single chip to realize the quick design of intelligent doorbell scheme
Elk log analysis system
Acwing game 58 [End]
PHP cli getting input from user and then dumping into variable possible?
Mongodb common commands
Pdf things
Structure of ViewModel
Qrcode: generate QR code from text
为什么腾讯阿里等互联网大厂诞生的好产品越来越少?
SQL performance optimization skills
Azkaban actual combat
[Chongqing Guangdong education] 2777t green space planning reference questions of National Open University in autumn 2018
Three line by line explanations of the source code of anchor free series network yolox (a total of ten articles, which are guaranteed to be explained line by line. After reading it, you can change the
Design of kindergarten real-time monitoring and control system