Hive不等值連接


select * from (
select t1.instalment_id as r_id , t2.instalment_id as p_id
from
(select instalment_id from r_i ) t1
left join
(select instalment_id from p_i ) t2
on t1.instalment_id = t2.instalment_id
) c where c.p_id is null

 

 

 

create table ins as
select t1.instalment_id p,t2.instalment_id r from 1706_payin t1 left join 1706_rec t2 on t1.instalment_id = t2.instalment_id

select * from ins where r is null

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM