﻿UPDATE dic
SET
	C_VISIBLE = 'F',
	C_ISACTIVE = 'F'
FROM T_DICTIONARYITEMBASE dic
JOIN T_TANEV t ON t.ID = dic.C_TANEVID AND t.C_INTEZMENYID = dic.C_INTEZMENYID AND t.C_NEV = '2018/2019'
WHERE
	dic.ID IN (6908,6909,6910,6911,6912,6913)


UPDATE T_OSZTALYCSOPORT
SET
	C_EVFOLYAMTIPUSA = 7366
WHERE
	ID IN (
		SELECT
			ocs.ID
		FROM T_OSZTALYCSOPORT ocs
		JOIN T_TANEV t ON t.C_INTEZMENYID = ocs.C_INTEZMENYID AND t.C_NEV = '2018/2019'
		WHERE
			ocs.C_EVFOLYAMTIPUSA IN (6908,6909,6910,6911,6912,6913) AND ocs.C_TANEVID = t.ID
	)