joins in update query

C
UPDATE A
SET foo = B.bar
FROM TableA A
JOIN TableB B
    ON A.col1 = B.colx
WHERE ...update a
join b 
on a.a_id=b.b_id 
set b.is_active = 1 
where ....;
Source

Also in C: