J
John T Ingato
I recieve a spreadsheet of active and open stores from a major chain every
quarter which obviously list all attributes of each store in a separate
record. I also receive a sales report from the chain every week listing
inventory for each store and each of our products.
I have created and updated two tables to hold each of these flat files and
when I created them I left referential integrity off.
when I try to establish referential integrity, it will not allow me to
because there are new stores that just opened on the sales report, but I
have not received the updated store list yet; I only receive an updated list
once each quarter.
I would like to add all the stores that are not present in the stores table
manually and establish referential integrity. Each week when I receive a new
sales report in Excel, I import the data into the SalesTable using Import
Table.
If I do set the integrity, the next time I import a sales report I assume it
is going to fail because there is not a matching store number in the stores
table, true?
Should I leave referential integrity off? or are there other way around
this? Ultimately, I would like to import the report and if there is a new
store, add its store number to the store Table and maybe somehow flag it as
a record with incomlete info. yes? / No?
quarter which obviously list all attributes of each store in a separate
record. I also receive a sales report from the chain every week listing
inventory for each store and each of our products.
I have created and updated two tables to hold each of these flat files and
when I created them I left referential integrity off.
when I try to establish referential integrity, it will not allow me to
because there are new stores that just opened on the sales report, but I
have not received the updated store list yet; I only receive an updated list
once each quarter.
I would like to add all the stores that are not present in the stores table
manually and establish referential integrity. Each week when I receive a new
sales report in Excel, I import the data into the SalesTable using Import
Table.
If I do set the integrity, the next time I import a sales report I assume it
is going to fail because there is not a matching store number in the stores
table, true?
Should I leave referential integrity off? or are there other way around
this? Ultimately, I would like to import the report and if there is a new
store, add its store number to the store Table and maybe somehow flag it as
a record with incomlete info. yes? / No?