update EVALUATION SET VIGILANTS_REPORT=1 WHERE ID_INTERNAL IN (select distinct(KEY_WRITTEN_EVALUATION) FROM VIGILANCY) AND VIGILANTS_REPORT=0;