drop trigger if exists sales_before_delete;
DELIMITER // 
create trigger sales_before_delete after delete on dbr_sales
    for each row begin
        delete from dbr_sales_bd where sales_id = old.id;
    END//
DELIMITER ;