"Kenny-Z" <reply (AT) group (DOT) please> wrote
Quote:
On one hand, information like this can be modeled as an attribute of
an entity using integer values (for example), such as 1=Male,
2=Female... It is then up to the front-end application to translate
these into meaningful values. Advantages: less table joins=less
overhead, simpler to implement the schema. |
I really don't see the difference. Logically:
1 = 1*2^0, 2 = 1*2^1+0*2^0
'Male' = 'M'*128^3 + 'a'*128^2+'l'*128^1+'e'*128^0
where 128 is ascii range.
Physically, any reasonable database implementation should be able to
compress a column storing {'Male','Female'} to something close to 1 bit/per
row.