
/*------ ATD 271965 ------*/
delete from prodrefcad 
where exists(select 1 from produtocad p 
			 where p.codpro = prodrefcad.codpro and p.codinterno = prodrefcad.referencia)
go