我看到这个视图中的重复记录似乎是什么。您认为此视图会导致重复记录吗?
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 > ''
)