Multipart identifier cannot be bound error on update

  • 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.

  • i think you need a FROM clause in there because you're referencing two objects, X and Y

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply