As there are about 16M postcodes , they would be fairly difficult to identify by lookup.
Is this a one off exercise or something which you wish an application to do on an ongoing transactional basis.
Also are the postcodes standard formatted i.e. 8 characters long AND CAPS used appropriately
If so you could try and search the string for a postcode area (2 characters long which you coudl have a lookup table for)and pull the following 6 characters to a table where you could check for an appropriate postcode format. Obviously if the original format is not quite right, this would be problematic.
You might be better of using address management software (eg. QAS) to search for the postcodes as they are better equipped to do this.
Thanks for the pointers Phil. It's something that we would want to do on a semi regular basis as our raw data is in a mess and whenever we pull the data out for things such as a marketing mail merge, we want to format the data correctly. Unfortunately, the raw data doesn't have a field for postcode!
I was hoping maybe someone would have a little module already written to this, I've not given up hope just yet!
not normally one to put my sales hat on in this environment, but I am actually a database marketing consultant, and something that strikes me as a little odd is that the address cleanse is only carried out when the data is required.
Are there steps which you could take to improve the quality of data on entry, thereby avoiding this occasional problem.
It does seem like an inordinate anount of work to try and do when deadlines loom (ie. mailings need to go out).
If you were able to send me a sample of the data, I will see if I can come up with a routine for you (gratis) but I really would emphasise the benefits of getting the data right on entry, because any routine you were to produce will undoubtedly come up with more than a few "Manual check required" flags.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.