﻿insert into T_DICTIONARYITEMBASENYELV_OSSZES(C_NAME, C_NYELVID, C_DICTIONARYITEMBASEID, C_INTEZMENYID, C_TANEVID, TOROLT, SERIAL, LASTCHANGED, CREATED)
select 
    C_NAME_2
   ,507
   ,ID
   ,C_INTEZMENYID
   ,C_TANEVID
   ,TOROLT
   ,SERIAL
   ,LASTCHANGED
   ,CREATED
from T_DICTIONARYITEMBASE_OSSZES where C_TYPE in ('MagatartasErtekelesTipus', 'SzorgalomErtekelesTipus') AND TOROLT = 'F' AND C_NAME_2 is not null