I'm trying to populate a column in Table A from the data in Table B based on a unique Identifier (only for matching records. I just started using MS SQL Server after using MySQL for 4 years. In MySQL, this would essentially be:
update TableA a
inner join TableB b
on a.IDColumn = b.IDColumn
set a.ColumnIWant = b.ColumnIWant
I've tried a number of different variations of this, but none of them work... Is the syntax that much different in MS SQL Server Management Studio? Can you use aliases? Any help would be greatly appreciated.
update TableA a
inner join TableB b
on a.IDColumn = b.IDColumn
set a.ColumnIWant = b.ColumnIWant