Hive中求交集和差集的两种方法

Hive中求交集和差集的两种方法: spa --1.交集:io select id from t1 union select id from t2 select id from t1 intersect select id from t2 --2.差集 select a.id from t1 left join t2 on t2.id = t1.id and t2.id is null; sele
相关文章
相关标签/搜索