0
I would like to know how to relate two tables in different databases so that every time the value in the bank table1.dbo.table id1 will be changed also in the bank.dbo.table id1, modifying according to the line(id) which is being modified
the point is that the tables are like this
Tabela1
id - coluna2 - coluna3 - point
1 --- 0 ----------- 0 -------- 10
2 --- 0 ----------- 0 -------- 25
table 2
id - coluna2 - coluna3 - coluna4 - bonus
1 ------ 0 -------- 0 ---------- 0 --------- ?
2 ------ 0 -------- 0 ---------- 0 --------- ?
i wanted this point to pass pro bonus whenever it was changed, according to the row there (id), so in the case if moved that 25 there in row 2 will be changed also here in row 2 of the bonus column in table 2 is kind of confusing, thank you for responding
Maybe using a
Trigger
.– João Martins