Update ch08: 秋招秘籍 C.md

This commit is contained in:
mba1398
2021-09-25 22:35:18 +08:00
committed by GitHub
parent 5abfc19c74
commit 628715474b

View File

@@ -72,16 +72,14 @@ INSERT INTO t_act_records VALUES('u1004', 20210105);
# 练习四hive 数据倾斜的产生原因及优化策略?
# 练习五:left join 是否会出现多出的行?
假设 A表有5行(关联列 name 有2行为空B表有6行关联列 name 有3行为空那么 A left join B on A.name = B.name 会返回多少行结果?
# 练习五:LEFT JOIN 是否可能会出现多出的行?为什么?
假设 A表有6行(关联列 name 有2行为空B表有6行关联列 name 有3行为空,
那么 `SELECT * FROM A LEFT JOIN B on A.name = B.name` 会返回多少行结果?
可以参考下图
A表
[A表](./img/Question_C/C05A.jpg)
B表
[B表](./img/Question_C/C05B.jpg)
A表![图片](./img/Question_C/C05A.jpg) B表![图片](./img/Question_C/C05B.jpg)