Hello indo-oracle,
bagaimana script menghapus record yang tidak ketemu atau tidak sama
dengan.
klu untuk sama dengan saya bisanya bikin seperti ini.
for i in
(
select
a.cd_lokasi as cd_lokasi
from
lokasi a
)
loop
delete stock x
where
trim(x.cd_lokasi) = trim(i.cd_lokasi)
and nvl(x.a_pcs,0) = 0
and nvl(x.s_pcs,0) = 0 ;
end loop ;
--
Best regards,
fansul
mailto:[email protected]
__________________________________________________
Apakah Anda Yahoo!?
Lelah menerima spam? Surat Yahoo! memiliki perlindungan terbaik terhadap spam
http://id.mail.yahoo.com