我面临着一个错误蜂巢查询 - 三个加盟与操作条件或连接两个表
“FAILED: Error in semantic analysis: Line 1:101 OR not supported in JOIN currently dob
”
在运行下面提到的查询..
Insert Overwrite Local Directory './Insurance_Risk/Merged_Data' Select f.name,s.age,f.gender,f.loc,f.marital_status,f.habits1,f.habits2,s.employement_status,s.occupation_class,s.occupation_subclass,s.occupation from sample_member_detail s Join fb_member_detail f
On s.email=f.email or
s.dob=f.dob
or (f.name=s.name and f.loc = s.loc and f.occupation=s.occupation)
where s.email is not null and f.email is not null;
谁能告诉我认为,在蜂房“OR
”运营商可以使用或不? 如果不是,那么应该是什么样的查询将给出与上述查询给出的结果相同的结果。 我有2个表,我想加入两个表中的任何一个与运算符的三个条件。 请帮忙..
你会必须在外层添加_distinct_以获得相同的结果。否则,您将得到满足多个条件的行的重复项。 – 2014-05-02 18:34:06