Ryan
3/30/2007 12:42:00 PM
Thanks Roy, and all. That seems to be the consensus here, that there's
nothing wrong with the way I'm doing it now. I'm glad I checked though as
it certainly raised an enlightening (for me) discussion.
Ryan
"Roy Harvey" <roy_harvey@snet.net> wrote in message
news:a1eo03djkqnkrr21f0g5pnc9ep2mvfm0h1@4ax.com...
> There is indeed a standard practice, and you are already following it.
> Considering the astounding number and variety of questionable database
> implementations that are commonly described here you are to be
> congratulated, first for getting it right and second for checking
> before messing it up. 8-)
>
> Roy Harvey
> Beacon Falls, CT
>
> On Thu, 29 Mar 2007 15:42:49 -0500, "Ryan" <Tyveil@newsgroups.nospam>
> wrote:
>
>>Double Column tables (ID and Field).. should they be used?
>>For example, lets say I have a Person table. Some attributes could be
>>Ethnicity, State, EyeColor, and HairColor. If I want the user to have the
>>ability to modify the available selections for those fields, the way I've
>>done it in the past is create a new table. So for example now in the
>>Person
>>table I'd have the foreign keys EthnicID, StateID, etc and 4 new tables.
>>Each new table would contain only 2 columns, the ID column and the
>>attribute
>>column. The advantages I see for this are:
>>A) Any time a value is changed, say in the Ethnic Table the row
>>(attribute)
>>White is changed to Caucasian, the change is reflected across every Person
>>record. B) Pretty easy to handle with lookup tables. The disadvantage is
>>the tables are more obscure and I end up having to write a lot more Views
>>and complex joins in Queries. Is there a standard practice for this sort
>>of
>>thing?
>>
>>Thanks,
>>Ryan
>>