Basically I am tyring to decide how to load the history table on a daily basis. (The history table will contain all the daily transactions.)
There will be 3 extra tables used to validate what data is loaded daily into the history table. The 2tables will be 2 foregin keys in the history table. The history table will be linked to the 3 other tables by having a foreign key for each table.
How should I setup the bestg sql script?
Will I drop the foreign key relationships first before I load the history table daily? Will I load the history table daily and not drop the foreign relationships.
What is the best method of referring to the other 2 control tables? Do I just use an alter statement? Can you tell me and/or point me to a reference I can use to solve the problem?