Question on Creating SQL Server 2K Relationship
I have a rather large table with several dozen fields, two of which are "location" and "goal." Most of the goals are already populated.
We now realize we need to create another table, a master "goals table" that contains just the "location" and the "goal." I want to set this up, so that when you update a goal in the master table, it automatically updates the goal in the big table.
I know how to create a relationship between the two tables, on "location" and "goal." But the big table has already been created, and has the goals already populated.
My question is, when I create the new, 2-column master goals table, and the relationship, will it INITIALLY, and automatically do an UPDATE on the goals in the big table? Or does this have to be done initially, when both tables are first created?
I need for the goals in the big table to be updated as soon as I create the master goals table, and then continue to change in the future, whenever the goals are changed in the master goals table.
Will simply creating a relationship do this? Or do I have to do something else, (like run an update query) to "force" the goals in the big table to automatically UPDATE, and then stay updated, each time a goal in the master goals table is changed? My SQL Server book doesn't tell you this. It only explains how it works when you FIRST create the tables, and BEFORE you populate the goals in either table.
I am getting ready to experiment with this on a backup copy of the table. But was hoping to find out, before moving forward. Thanks for any help/advice.
Gary
