当前位置:网站首页>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
边栏推荐
- There is a question about whether the parallelism can be set for Flink SQL CDC. If the parallelism is greater than 1, will there be a sequence problem?
- Six stone programming: advantages of automated testing
- Asp+access campus network goods trading platform
- [micro service SCG] 33 usages of filters
- D3js notes
- Anchor free series network yolox source code line by line explanation four (a total of ten, ensure line by line explanation, after reading, you can change the network at will, not just as a participan
- Tiny series rendering tutorial
- Azkaban actual combat
- Sqoop command
- VM in-depth learning (XXV) -class file overview
猜你喜欢

Tiny series rendering tutorial

Azkaban actual combat

Jd.com 2: how to prevent oversold in the deduction process of commodity inventory?

Mongodb common commands

The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety

Flume配置4——自定义MYSQLSource

Avoid material "minefields"! Play with super high conversion rate

看 TDengine 社区英雄线上发布会,听 TD Hero 聊开发者传奇故事

Yuan universe also "real estate"? Multiple second-hand trading websites block metauniverse keywords

腾讯云,实现图片上传
随机推荐
Devtools的簡單使用
Pytest (4) - test case execution sequence
Bumblebee: build, deliver, and run ebpf programs smoothly like silk
Design and practice of kubernetes cluster and application monitoring scheme
El tree whether leaf node or not, the drop-down button is permanent
[Yu Yue education] National Open University autumn 2018 8109-22t (1) monetary and banking reference questions
How to make OS X read bash_ Profile instead of Profile file - how to make OS X to read bash_ profile not . profile file
Kubernetes -- cluster expansion principle
Kubernetes - Multi cluster management
Devtools的简单使用
New interesting test applet source code_ Test available
Vb+access hotel service management system
Leetcode92. reverse linked list II
Design of KTV intelligent dimming system based on MCU
040. (2.9) relieved
Share the newly released web application development framework based on blazor Technology
单项框 复选框
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Use UDP to send a JPEG image, and UPD will convert it into the mat format of OpenCV after receiving it
The database and recharge are gone