I have seven original columns have to work with for solving this problem.
For every range of zip codes, I would like to break them up into single records, the problem being I have 3156 records and the ranges vary from 1 to 1000 zip codes per range.
So, I need to construct a VB script or SQL in that with create an additional record for every zip in the range and keep all information to the left of Zip1 the same for the additional records in that range.
Obviously I would no longer have a need for the zip2 column since all the zip code ranges would be broken down with corresponding pcodes.
Any ideas?
Thanks
Here is an example of two records, after the split I would need three more records created.
pcode bit Counrty state city zip1 zip2
300 0 usa al prat 36066 36068
pcode bit Counrty state city zip1 zip2
1100 0 usa mt prat 36532 36533
For every range of zip codes, I would like to break them up into single records, the problem being I have 3156 records and the ranges vary from 1 to 1000 zip codes per range.
So, I need to construct a VB script or SQL in that with create an additional record for every zip in the range and keep all information to the left of Zip1 the same for the additional records in that range.
Obviously I would no longer have a need for the zip2 column since all the zip code ranges would be broken down with corresponding pcodes.
Any ideas?
Thanks
Here is an example of two records, after the split I would need three more records created.
pcode bit Counrty state city zip1 zip2
300 0 usa al prat 36066 36068
pcode bit Counrty state city zip1 zip2
1100 0 usa mt prat 36532 36533