UPDATE REGISTRATION INNER JOIN CANDIDACY ON CANDIDACY.KEY_REGISTRATION = REGISTRATION.ID_INTERNAL 
SET REGISTRATION.INGRESSION = CANDIDACY.INGRESSION, REGISTRATION.ENTRY_PHASE = CANDIDACY.ENTRY_PHASE;
