Storing Integers As Character Strings
Date: 24 Mar 2005 03:17:13 -0800
Message-ID: <1111663033.896708.276010_at_z14g2000cwz.googlegroups.com>
Dear All,
I'm revisiting a principle I was taught 15 odd years ago and wondering if it is still current - I've tried trawling through the ISO standards and either its not defined as a standard or my searching wasn't good enough! (probably the latter).
Basically, I'm putting together a list of standards on data labelling
conventions for column names etc (based on the ISO ones) for the
developers where I work and I've come up with a bit of a dilemma and
would like some thoughts and guidance.
I was taught many years ago to store house numbers, telephone numbers
etc as charcter strings i.e. varchar, varchar2, char etc, reason being
that the operations that would be carried out on these attributes would
be textual in nature i.e. you might concat house number to street name
but you're hardly likely to do mathematical functions on house numbers
I would be interested in being pointed towards the 'current' thinking
and if what I was instructed way back then is still relevant or if I
was totally misguided....
Thanks for all your help in anticipation, your feedback is always
valued and taken on board.
S