ODPS表t1、t2都是分区表,分区键是pt,对于sql语句select t1.id from t1 left&nb

[复制链接]
查看: 397|回复: 1

1万

主题

1万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
37475
发表于 2019-11-28 23:50:36 | 显示全部楼层 |阅读模式
试卷: 阿里云大数据专业ACP认证模拟考试练习题
[单选题]

ODPSt1t2都是分区表,分区pt,对于sql语句select t1.id from t1 left outer join t2 on t1.id=t2.id where t1.pt=’20140101’ and t2.pt=’20140101’,哪一个说法是正确的。




你没有权限查看更多信息! 登陆
腾讯云

0

主题

2

帖子

79

积分

注册会员

Rank: 2

积分
79
发表于 2020-9-12 17:56:04 | 显示全部楼层
但以下官方文件, 答案好像是D
https://www.alibabacloud.com/help/doc-detail/89993.html

If Left join In the third case, the where condition filter after JOIN

SELECT A.*, B.*
FROM A JOIN B
ON a.key = b.key
WHERE A.ds='20180101' and B.ds='20180101';

For example, there are nine results of Descartes that meet the ON a.key = b.key there are 3 results for key, respectively:

a.key        a.ds        b.key        b.ds
1        20180101        1        20180101
2        20180101        2        20180102
2        20180102        2        20180102

沒有進行分區裁剪.....
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

精彩图文



在线客服(工作时间:9:00-22:00)
400-600-6565

内容导航

微信客服

Copyright   ©2015-2019  云服务器社区  Powered by©Discuz!  技术支持:尊托网络     ( 湘ICP备15009499号-1 )