Go to content Go to navigation Go to search


Browse

RSS / Atom

All Articles

Code!

Levels of insanity · 2007-10-12 12:43

This is how they figure out how to store customer addresses in the database where I work:

Table Fields Street Address Shop Address Lot Road Mail Box PO Box GPO Box Locked Bag Private Bag Private Box DX Box Overseas
ADDR_TYPE P P P P P P P P P P P
ADDR_FORMAT_TYPE H S L R P G B U V X O
ADDR_CARE_OFyyyyyyyyyyy
ADDR_FLOORyynnnnnnnnn
ADDR_BUILDINGyyyynnnnnnn
ADDR_UNIT_NUMyShop No.nnnnnnnnn
ADDR_BOX_NUMnnnnyyyyyyn
ADDR_STREET_NUMyyLot No.Box No.nnnnnnn
ADDR_STREET_NAMEyyyynnnnnnn
ST_STREET_TYPEyyyynnnnnnn
ADDR_STREET_TYPE_DESCyyyynnnnnnn
ADDR_DIRNyyyynnnnnnn
ADDR_TOWN_NAMEyyyyyyyyyyn
ADDR_POSTCODEyyyyyyyyynn
ADDR_STATEyyyyyyyyynn
ADDR_COUNTRYnnnnnnnnnny
ADDR_OVERSEASnnnnnnnnnny
ADDR_SUITEyyyynnnnnnn

I just wanted you to know this so the next time you see me drinking heavily, you might be more inclined to buy me a beer.

Commenting is closed for this article.

Fark... I'm voting greens