当前位置:网站首页>Advanced learning of MySQL -- basics -- multi table query -- self join
Advanced learning of MySQL -- basics -- multi table query -- self join
2022-07-07 00:34:00 【Magic pig 9898】
grammar :
Self connection can be internal connection or external connection
for example
Query employees , And the name of its leader
select a.name , b.name from emp a , emp b where a.managerid = b.id;
in other words , If an employee doesn't have a leader , This employee will not be found out , Isn't that the inner connection
Another example is
Query all employees , And its subordinate leaders , If the employee has no leader , We need to find out
select a.name , b.name from emp a left outer join emp b on a.managerid = b.id;
边栏推荐
- AI super clear repair resurfaces the light in Huang Jiaju's eyes, Lecun boss's "deep learning" course survival report, beautiful paintings only need one line of code, AI's latest paper | showmeai info
- MIT 6.824 - Raft学生指南
- VTK volume rendering program design of 3D scanned volume data
- GEO数据挖掘(三)使用DAVID数据库进行GO、KEGG富集分析
- 一图看懂对程序员的误解:西方程序员眼中的中国程序员
- Notes of training courses selected by Massey school
- Policy Gradient Methods
- 华为mate8电池价格_华为mate8换电池后充电巨慢
- 什么是响应式对象?响应式对象的创建过程?
- 【vulnhub】presidential1
猜你喜欢

Mujoco second order simple pendulum modeling and control

刘永鑫报告|微生物组数据分析与科学传播(晚7点半)

2021 SASE integration strategic roadmap (I)

Three application characteristics of immersive projection in offline display

JWT signature does not match locally computed signature. JWT validity cannot be asserted and should

The difference between redirectto and navigateto in uniapp

1000 words selected - interface test basis

X.509 certificate based on go language

Hero League | King | cross the line of fire BGM AI score competition sharing

What is a responsive object? How to create a responsive object?
随机推荐
一图看懂对程序员的误解:西方程序员眼中的中国程序员
Notes of training courses selected by Massey school
Uniapp uploads and displays avatars locally, and converts avatars into Base64 format and stores them in MySQL database
The way of intelligent operation and maintenance application, bid farewell to the crisis of enterprise digital transformation
How to set encoding in idea
【向量检索研究系列】产品介绍
TypeScript增量编译
[CVPR 2022] target detection sota:dino: Detr with improved detecting anchor boxes for end to end object detection
Use mujoco to simulate Cassie robot
Wechat applet UploadFile server, wechat applet wx Uploadfile[easy to understand]
PostgreSQL uses pgpool II to realize read-write separation + load balancing
Model-Free Control
37 page overall planning and construction plan for digital Village revitalization of smart agriculture
DAY SIX
【CVPR 2022】目标检测SOTA:DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection
JS import excel & Export Excel
File and image comparison tool kaleidoscope latest download
[CVPR 2022] semi supervised object detection: dense learning based semi supervised object detection
Google, Baidu and Yahoo are general search engines developed by Chinese companies_ Baidu search engine URL
Everyone is always talking about EQ, so what is EQ?