Я пытаюсь запустить этот SQL для обновления таблицы. Проблема в том, что мне нужно присоединиться, чтобы обновить правильную запись. Это то, что я придумал до сих пор:Как написать Update with join в where where
Update UserProfile
set UserProfile.PropertyValue = 'Test'
join ProfilePropertyDefinition
on ProfilePropertyDefinition.Id = UserProfile.PropertyDefinitionId
where UserProfile.UserId = 11
and ProfilePropertyDefinition.PortalID = 0
and ProfilePropertyDefinition.PropertyName = 'Address1'
and ProfilePropertyDefinition.PropertyCategory = 'Address'
Это сообщение я получаю:
Неправильный синтаксис около ключевого слова «присоединиться».
Спасибо, что было. –