update TousseItem set ancestorID=(select ancestorID from TousseDefinition where id=TousseItem.tousseDefinitionId) where tousseDefinitionId is not null and ancestorID is null;