CREATE trigger tbpdv_adquirente_b02d for tbpdv_adquirente
active before delete position 2
AS
BEGIN
   IF(OLD.ID > 0) THEN
   BEGIN
      DELETE FROM TBPDV_ADQUIRENTE_TAXA         WHERE ADQUIRENTE_ID = OLD.ID;
      DELETE FROM TBCARTAO_BANDEIRA_ADQUIRENTE  WHERE PDV_ADQUIRENTE_ID = OLD.ID;
   END
END;

