﻿UPDATE DIT SET 
  DIT.C_NAME = 'Záradékok' 
FROM T_DICTIONARYTYPE DIT 
  INNER JOIN T_TANEV t ON t.ID = DIT.C_TANEVID AND t.C_SORSZAM >38
WHERE DIT.C_CODENAME = 'SorolasOkaTipus' 
  AND DIT.TOROLT = 'F' 