当前位置:网站首页>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;
边栏推荐
- JWT signature does not match locally computed signature. JWT validity cannot be asserted and should
- kubernetes部署ldap
- DAY FOUR
- Introduction au GPIO
- Jenkins' user credentials plug-in installation
- Amazon MemoryDB for Redis 和 Amazon ElastiCache for Redis 的内存优化
- DAY SIX
- 陀螺仪的工作原理
- After leaving a foreign company, I know what respect and compliance are
- 1000 words selected - interface test basis
猜你喜欢

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

1000 words selected - interface test basis

基於GO語言實現的X.509證書

AI超清修复出黄家驹眼里的光、LeCun大佬《深度学习》课程生还报告、绝美画作只需一行代码、AI最新论文 | ShowMeAI资讯日报 #07.06

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

@TableId can‘t more than one in Class: “com.example.CloseContactSearcher.entity.Activity“.

Mujoco finite state machine and trajectory tracking

【vulnhub】presidential1

37 page overall planning and construction plan for digital Village revitalization of smart agriculture

DAY FIVE
随机推荐
2022/2/10 summary
互动滑轨屏演示能为企业展厅带来什么
Introduction au GPIO
【向量检索研究系列】产品介绍
DAY ONE
Leecode brushes questions to record interview questions 17.16 massagist
What can the interactive slide screen demonstration bring to the enterprise exhibition hall
What is AVL tree?
Model-Free Prediction
Use package FY in Oracle_ Recover_ Data. PCK to recover the table of truncate misoperation
Random类的那些事
"Latex" Introduction to latex mathematical formula "suggestions collection"
System activity monitor ISTAT menus 6.61 (1185) Chinese repair
37頁數字鄉村振興智慧農業整體規劃建設方案
MySQL learning notes (mind map)
DAY FIVE
Data analysis course notes (V) common statistical methods, data and spelling, index and composite index
Cross-entrpy Method
Testers, how to prepare test data
MIT 6.824 - Raft学生指南