how to write an update statement in sql across multiple tables code example
Example 1: how to add where command in update comand with joins
UPDATE A
SET foo = B.bar
FROM TableA A
JOIN TableB B
ON A.col1 = B.colx
WHERE ...
Example 2: update multiple columns in sql
UPDATE table-name SET column-name = value, column-name = value WHERE condition = value