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);


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM