I'm relatively new to relational databases and I'm not sure if what I want to do is possible. If someone could please tell me how to do this or at least point me in the right direction,
I have this table_1
NameId SelectedName
1 A
3 C
6 F
NameId
is a FOREIGN KEY
that REFERENCES table_2 (Id)
and I have this table_2
Id Name
1 A
2 B
3 C
4 D
5 E
6 F
And I want to set up my database so that anytime an entry in table_2
is updated, table_1
will change the value of it's Name
column if the entry from table_2
is in it. For example if I change this value in table_2
Id Name
3 C_EDITED
That change will also be reflected in table_1