Re: Relation or attribute and why
Date: 23 May 2006 13:25:15 -0700
Message-ID: <1148415915.092574.242190_at_u72g2000cwu.googlegroups.com>
dawn wrote:
> In response to Tony, I agree that other than collecting multiple names,
> there is nothing to be gained. So we derive the name and store the
> parts (first, last, middle), whereas with the date, we store the date
> and derive the parts (month, day, year).
>
> What is practice that we used to decide to produce a logical data model
> in this way, sometimes dumping nouns that are collectives from the CDM,
> sometimes dumping the parts, when preparing the LDM?
>
> If the rule of thumb has to do with "the simplest" then is there a
> logical distinction for why deriving the name is simplest in the one
> case and deriving the date parts is simplest in the other or is this
> based on the tools used (having date as a built-in type, but not name,
> for example)? --dawn
If you didn't use the built-in Date type then you would take on yourself the responsibility of rejecting (31, 'Feb', 2006) as a valid date value, and so on.
You could of course (where the DBMS permits) define your own Name datatype with associated attributes and operators, so that Name becomes a single column in your table. But you might decide it wasn't worth the effort. Received on Tue May 23 2006 - 22:25:15 CEST