update Container set departCode = (select handlerDepartCode from TousseDefinition td where td.id = (select tousseDefinitionID from IDCardDefinition where id = Container.idCardDefinitionId)), departName = (select handlerDepartName from TousseDefinition td where td.id = (select tousseDefinitionID from IDCardDefinition where id = Container.idCardDefinitionId)) where idCardDefinitionId is not null;