I have a situation where separate sites use copies of the same database. To run reports on the consolidated data, I will need to merge data from each database into one master copy.
If the tables in each separate database use autonumbering for the PK, won't this cause problems for me when I try and combine the data?
For example:
If tblDetroitCust and tblChicagoCust both use autonumbers for their PK, and both tables are appended to tblMaster, what will happen when records containing the same PK autonumber are appended to the Master table?
How do I avoid this?
If I assign a code to each location and start the autonumber sequence accordingly, will that work?
Detroit = 10, Chicago = 20
Detroit autonumber starts at 10000
Chicago autonumber starts at 20000
What's the best way to avoid matching PK autonumbers when appending records from multiple tables into one master table?
If the tables in each separate database use autonumbering for the PK, won't this cause problems for me when I try and combine the data?
For example:
If tblDetroitCust and tblChicagoCust both use autonumbers for their PK, and both tables are appended to tblMaster, what will happen when records containing the same PK autonumber are appended to the Master table?
How do I avoid this?
If I assign a code to each location and start the autonumber sequence accordingly, will that work?
Detroit = 10, Chicago = 20
Detroit autonumber starts at 10000
Chicago autonumber starts at 20000
What's the best way to avoid matching PK autonumbers when appending records from multiple tables into one master table?