
/*------ ATD 332734 ------*/
IF EXISTS (SELECT 1 FROM ADITIVO WHERE RDEFINICAO = 30417)
   DELETE FROM ADITIVO WHERE RDEFINICAO =  30417
go
IF EXISTS (SELECT 1 FROM DADOADICIONAL WHERE OID = 30417)
   DELETE FROM DADOADICIONAL WHERE OID = 30417
go
IF EXISTS (SELECT 1 FROM ITEM WHERE OID = 30418)
   INSERT INTO EXCLUIDO (OID, EXCLUIDOPOR, RAPLICATIVO) VALUES ( 30418, 1, 7 )
   DELETE FROM EXCLUIDO WHERE OID = 30418
go
