Address formats
Posted on 18 Jun 2009 at 11:48
Simon Jones tackles the tricky subject of handling addresses in applications, both within the UK and far beyond.
17 Rue St Jermaine
75216 PARIS CEDEX 06
Mail sent to that same address but not through the CEDEX system, might be addressed:
17 Rue St Jermaine
75006 PARIS
Since the CEDEX designator doesn't work without the correct postal code, or vice-versa - and the city is encoded as the first digits of the postal code - I feel quite justified in saying that the word CEDEX and any following sector number should really be part of the ZIP or postcode field and not the city or post town, which stops the post town field being polluted with crap, and means you can do efficient searches for "PostTown = 'Paris'", rather than inefficient ones like "PostTown LIKE 'PARIS%'".
Better still, you can group your results by PostTown and see all the results for "Paris" in one group, rather than seeing separate groups for "Paris", "Paris CEDEX", "Paris CEDEX 01" and so on.
From around the web
Simon Jones
Simon is a contributing editor to PC Pro. He's an independent IT consultant specialising in Microsoft Office, Visual Basic and SQL Server.
advertisement
- How to make Google AdWords work for your business
- The curse of sloppily written software
- Paying for your crimes with Bitcoin
- Behind the scenes: tech support for Formula 1
- The security risk of fat fingers
- Why Windows Phone 7 isn't quite ready for business
- When will Microsoft stop fiddling with Windows 8?
- Flash down the pan?
- Metro Style apps vs desktop applications
- Coping with Facebook changes
- Chrome's shine getting lost in translation
- BytePac: the cardboard hard disk enclosure
- How tech loosens our grip on reality
- Hokum watch: Safer Internet Day
- Why I'm deleting Adobe from my PC
- Prepare to be patronised: it's Safer Internet Day
- Dear Sony, Samsung and every other tech company in the world: stop trying to be Apple
- Will Apple's Final Cut Pro X update placate the pros?
- Smartr Contacts for iPhone review
- Switching to Office 365's Outlook Web App
- VeriSign slammed for security breach cover-up
- SAP willing to share HANA with Oracle
- Why using a tablet could harm your health
- New RIM boss: no need for drastic change
- RIM founders fall on their swords
- Slow economy helps boost Red Hat revenue by 23%
- Google+ pages get multiple admins
- One in five companies lack card industry compliance
- Oil industry warns hacking attacks could kill
- British workers fear email monitoring
advertisement

