table X has column a, b
table Y has column c, b, a
update X
inner join Y
on X.a = Y.a
set X.b = Y.b
where X.a condition and X.b condition
table X has column a, b
table Y has column c, b, a
update X
inner join Y
on X.a = Y.a
set X.b = Y.b
where X.a condition and X.b condition