可能这个Ibm i VIEW正在创建重复的记录?

时间:2013-09-10 22:42:47

标签: db2 ibm-midrange

我看到这个视图中的重复记录似乎是什么。您认为此视图会导致重复记录吗?

create view astccdta.acaudia AS                      
( select d.IARCC9,b.ItQty#,a.IhDocd,b.ItPRT#        
       from astdta.OEINHDIH a                        
 join astdta.ICDETLIT     b on                      

 b.Itcom# = a.IhCom#                                
 and                                                
 b.ItTrn# = a.IhIdc#                                


 left join astdta.ICECTLCT      c on                

 c.CtCom#= b.ItCom# and                              

 c.CtCtr# = ' ' and                                  

 c.CtPrt# =b.ItPrt#                                  
left join astdta.Audia d                        
on d.IAprt# = b.ItPrt#                          

where b.ItTscc = 'I'   and  a.IHDOCD > 20120105  
and d.IARCC9 > ''                                
) 

0 个答案:

没有答案