其他分享
首页 > 其他分享> > hive 多表连接查询并将结果存入新表

hive 多表连接查询并将结果存入新表

作者:互联网

insert overwrite table table2
select d.nsr
from (select a.nsr_id as nsr
from nsrxx a
inner join zzsfp b
on b.gf_id = a.nsr_id
group by a.nsr_id) as d
where nsr not in (select a.nsr_id
from nsrxx a
inner join zzsfp b
on b.xf_id = a.nsr_id
group by a.nsr_id);

标签:多表,join,hive,id,inner,group,新表,nsr,select
来源: https://www.cnblogs.com/chaogehahaha/p/15449856.html