No, you need to list all the fields separately. But you can avoid the subquery that you have ...
UPDATE Table2 SET column1 = Table1.column3 + Table1.column4 FROM Table2 INNER JOIN Table1 ON Table2.foreignKey1 = Table1.primaryKey1 AND Table2.foreignKey2 = Table1.primaryKey2 AND Table2.foreignKey3 = Table1.primaryKey3 AND Table2.foreignKey4 = Table1.primaryKey4
EDIT
Reply to comment:
- I thought the whole point of keys was to avoid having to concatenate columns!
Keys are not a time-saving device; they are data protection devices.
The primary key is a unique identifier. I can be compound or not, but the important thing is that it is unique and not null.
The foreign key is also a data integrity device. It ensures that if the data refers to something in another table, it must actually exist in that other table.
source share