TallGuyinIT
IS-IT--Management
I purchased a mailing list from a marketing company. I need to append the data to an existing mailing list. The database that I received from the marketing company contains 5 character string fields - addr1, addr2, addr3, addr4, addr5.
Browsing the data, the name is in addr1 and the first line of the address is in addr2. My problem is that the city, state and zipcode is either in addr3, addr4, or addr5 depending upon how many address lines were used.
I need a way to determine which field - addr3, addr4, or addr5 contains the zipcode, unless some one else knows of a better way to determine which field contains the city, state and zipcode. Once the field is determined, I need to parse the data into three fields - city, state, and zipcode.
As additional info, I have already tried working backwards from addr5 and looking for the first none blank field. It did not work. Many of the records contain general comments in the field following the city, state, and zipcode information.
Any guidance is appreciated.
Browsing the data, the name is in addr1 and the first line of the address is in addr2. My problem is that the city, state and zipcode is either in addr3, addr4, or addr5 depending upon how many address lines were used.
I need a way to determine which field - addr3, addr4, or addr5 contains the zipcode, unless some one else knows of a better way to determine which field contains the city, state and zipcode. Once the field is determined, I need to parse the data into three fields - city, state, and zipcode.
As additional info, I have already tried working backwards from addr5 and looking for the first none blank field. It did not work. Many of the records contain general comments in the field following the city, state, and zipcode information.
Any guidance is appreciated.