USE SRO_VT_SHARD Declare @Lvl int = '110' Update _RefSkill SET Service = 0 where ReqCommon_MasteryLevel1 > @Lvl and basic_code like '%SKILL_CH%' or ReqCommon_MasteryLevel1 > @Lvl and basic_code like '%SKILL_EU%'