-- Tables

-- Alters

update AKUZ.T_MES_MKB_LINK
	set Los = 8 -- select *
from AKUZ.t_mes where AKUZ.T_MES.MesID = AKUZ.T_MES_MKB_LINK.Mes
	and AKUZ.T_MES.DateAdd < '20240101'
	and AKUZ.T_MES.StandartType = 3
	and AKUZ.T_MES.HospitalType in (0, 1)
	and AKUZ.T_MES_MKB_LINK.Los = 5;