J
JohnE
Hello. I have a situation in which the higher ups are restructuring
territories/areas based on zip codes. Which now will require the changing
the designated area of 16,000 records. There are 3 tables that are involved;
tblArea - has the updated restructuring
tblCustomer - has the customer info including the zip code and the tblArea
primary key (AreaPK) as a foreign key
tblAreaZipCode - has the listing of the zip codes for the different areas
and the tblArea (AreaPK) primary key is a foreign key
I need to change the AreaPK (int) in the tblCustomer table to match the one
located in the tblAreaZipCode for the associated zip code. I am at a loss as
to how to do a mass undertaking such as this and ask for help from the group.
I'm sure this can be done thru some type of coding or scripting that will
automate the entire process. I suspect that there will be zip codes in the
customer table that may not be in the tblAreaZipCode.
If anyone has had to do something similar and is willing to help out and get
me started in the right direction, it is appreciated.
Thanks in advance to anyone who responds.
.... John
territories/areas based on zip codes. Which now will require the changing
the designated area of 16,000 records. There are 3 tables that are involved;
tblArea - has the updated restructuring
tblCustomer - has the customer info including the zip code and the tblArea
primary key (AreaPK) as a foreign key
tblAreaZipCode - has the listing of the zip codes for the different areas
and the tblArea (AreaPK) primary key is a foreign key
I need to change the AreaPK (int) in the tblCustomer table to match the one
located in the tblAreaZipCode for the associated zip code. I am at a loss as
to how to do a mass undertaking such as this and ask for help from the group.
I'm sure this can be done thru some type of coding or scripting that will
automate the entire process. I suspect that there will be zip codes in the
customer table that may not be in the tblAreaZipCode.
If anyone has had to do something similar and is willing to help out and get
me started in the right direction, it is appreciated.
Thanks in advance to anyone who responds.
.... John