0
我有两个蜂巢表之间的区别如下:蜂巢 - 获取基于一列中有两个蜂巢表
Table1:
c1 | c2 | c3
01 | june | true
02 | may | false
Table 2:
c1 | c4
01 | usa
我基本上希望得到基于表和表之间的差异(WRT操作集上下文) C1。也就是说,我正在查找包含表1中但不包含在表2中的c1值的所有行。从上面的示例中,我需要将表1中的第二行作为查询结果。
我尝试以下蜂巢查询:
select c1 from table1 a left outer join table2 b
on a.c1 = b.c1 where b.c1 is null
我收到以下错误:
Error while compiling statement: FAILED: SemanticException Column c1 Found in more than One Tables/Subqueries
表1与表2有一个名为C1作为他们的第一列。而这是我无法改变的。
有什么,我在这里失踪?提前致谢!
啊!这是一个如此愚蠢的问题!但是,非常感谢您耐心地回答。欣赏它! – activelearner