I have a simple table Structure like this:
Table tempData
╔══════════╦═══════╗ ║ NAME ║ MARKS ║ ╠══════════╬═══
Here in my sample I find out the solution of this, because I had the same problem with updates and subquerys:
UPDATE A SET A.ValueToChange = B.NewValue FROM ( Select * From C ) B Where A.Id = B.Id