﻿EXEC [dev].[uspCreateDictionaryItems] NULL, '2019/2020'

update DIB set DIB.C_NAME = N'A tagozat', DIB.C_NAME_1 = N'A tagozat', DIB.C_TYPE = N'AMITagozat', DIB.C_ORDER = 2 FROM T_DICTIONARYITEMBASE DIB INNER JOIN T_TANEV t ON t.ID = DIB.C_TANEVID AND t.C_NEV = '2019/2020' WHERE DIB.ID = 7665;
update DIB set DIB.C_NAME = N'B tagozat', DIB.C_NAME_1 = N'B tagozat', DIB.C_TYPE = N'AMITagozat', DIB.C_ORDER = 3 FROM T_DICTIONARYITEMBASE DIB INNER JOIN T_TANEV t ON t.ID = DIB.C_TANEVID AND t.C_NEV = '2019/2020' WHERE DIB.ID = 7666;

 EXEC [dev].uspSwitchDictionaryItemBaseFromTmp 