Path: dp-news.maxwell.syr.edu!spool.maxwell.syr.edu!drn.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: "Alan" <not.me@rcn.com>
Newsgroups: comp.databases.theory
Subject: Re: About Entity Relation Diagram
Date: Fri, 17 Dec 2004 17:14:25 -0500
Lines: 38
Message-ID: <32h42iF3mmlqtU1@individual.net>
References: <cprtnf$7dq$1@nic.grnet.gr> <1103203101.391468.169390@f14g2000cwb.googlegroups.com> <cpvc1c$7mi$1@nic.grnet.gr>
X-Trace: individual.net yIS8nkOUEwdaCEjIps5khAq64bI/tDSjCeBqnypwPXr9CoFB7g
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Xref: dp-news.maxwell.syr.edu comp.databases.theory:29080


"Silver" <argytzak@med.auth.gr> wrote in message
news:cpvc1c$7mi$1@nic.grnet.gr...
> Hi again,
>
> before I continue, I must thank you all for replying to this post !!
>
> After reading some things I begin to get a grasp of how things works.with
> database modelling. The question I have now has to do with the
> implementation of the database.
>
> As you remember (I hope so...) it's about a dating site.
> I have to include in the entity member a whole lot of info, such as
> eyeColor, hairColor, bodyType, etc. This can be done with two ways
>
> 1. I have a table called "EyeColor" with the columns eyeColodCode  and
> Description.
>     I then include in the entity member the foreign key eyeColorCode
>
> 2. I introduce a third table (one is Member, two is EyeColor) where I list
> the memberID and the eyeColorCode.
>
> Which of the above implementation is better? The 2. involves 3 tables but
it
> seems to offer greater flexibility in making queries.
>
> Thanks!!
>
>

Method 2 is going overboard. Method 1 is better. Just be sure you list
"Violet" as an eye color, or Elizabeth Taylor could not register. You should
also include something like "Multi-colored", as well as "Bi-colored" Multi
covers people whose eyes have multiple colors (hazel and green, for example,
is not uncommon). You also run into people who have different color eyes,
usually one blue and one green (bi-colored?).


