update permanentCM
SET X.Validate =
(Select Y.Comment
where X.Id = Y.problemId) where exists (Select Y.Comment
where X.Id = Y.Id)
and i get an error as
Msg 4104, Level 16, State 1, Line 2
The multi-part identifier "Y.Id" could not be bound.
Msg 4104, Level 16, State 1, Line 2
The multi-part identifier "Y.ID" could not be bound.
X.validate and Y.commnet both are nvarchar fields
is there another way i can update the table.