﻿--Migration
update t
set C_TANTERVID = NULL
--  select t.C_ALTANEVID, tt.C_TANEVID, *
from T_TANULO t
inner join T_TANTERV tt on tt.ID = t.C_TANTERVID
where t.C_ALTANEVID <> tt.C_TANEVID