I have 2 tables. One with full zipcodes. The other with an assigned 2 digit character with a zip5 and specific ranges of zip4's.
Example:
Table 1 titled Work contains zip 20171-1512
Table 2 titled Districts contains a zip4 range for each assigned store.
zip5=20171 zip4 start=1000 zip4 stop=1499 store=10
zip5=20171 zip4 start=1500 zip4 stop=1548 store=11
Obviously, this example would populate the store with 11, however I have over 55,000 records to populate.
What I need to do is populate the store field in the Work table with the associated store # from the Districts table when the Zip5's are the same the the zip4 falls with in the range in the Districts table.
I have been working on this and have run into a brick wall. Any ideas would be greatly appreciated.
Example:
Table 1 titled Work contains zip 20171-1512
Table 2 titled Districts contains a zip4 range for each assigned store.
zip5=20171 zip4 start=1000 zip4 stop=1499 store=10
zip5=20171 zip4 start=1500 zip4 stop=1548 store=11
Obviously, this example would populate the store with 11, however I have over 55,000 records to populate.
What I need to do is populate the store field in the Work table with the associated store # from the Districts table when the Zip5's are the same the the zip4 falls with in the range in the Districts table.
I have been working on this and have run into a brick wall. Any ideas would be greatly appreciated.