I need to write a sql query that adds one column from one database (DB1) to another column and the sum is save in that column in the second database(DB2). where userIds are the same
DB1
TableA
UserId People
DB2
TableB
Amount UserId
it would be something like this
DB2.TableB.Amount = DB2.TableB.Amount + DB1.TableA.People