| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Basic question?What 's the key if there 's no FD(Functional Dependencies)?
paul c wrote:
> David Cressey wrote:
> > "paul c" <toledobythesea_at_dbms.yuc> wrote in message
> > news:a2c2h.242940$R63.209531_at_pd7urf1no...
> >> vldm10 wrote:
> >>> saturnlee_at_yahoo.com wrote:
> >>>> What 's the key for it? ABC or nothing???
> >>>
> >>> ABC is not the key.
> >>> Example: Let one partricular entity has A,B,C atributes
> >>> and let these atributes take the following values:
> >>>
> >>> A B C
> >>> -----------------------------
> >>> 2 4 6
> >>> 8 4 6
> >>> 2 4 6
> >>>
> >>> ( ABC can be the key only in the trivial cases i.e if an entity has
> >>> the atributes whose values never change)
> ...
> >> 2) I don't know why entities need to be mentioned, either, nor what a
> >> non-"trivial" entity might possibly be.
> >>
> >> p
> >
> > I think he was referring to "trivial functional dependencies". A key
> > determines any subset of itself, trivially. In current parlance, "well,
> > duh!"
>
Let me clarify this more.
We have the real world and the RM.
Simply speaking we have the following schema:
Entities,attributes,.. ---------> Relations, columns,... (*)
If you thing that (*) is a simple thing and somehow automatic, I don't. It is very complex correspondence.
1)
Now if we put on left side of (*) the entity from my example with
its three states and try to apply given relation R(A,B,C) it doesn't
work.
Here we assume that ABC is the "natural" key.
2)
If you try to apply just the last two states from my example into given
relation R(A,B,C), that is case when values are not repeated,
you will get something like:
R: A B C
------------
8 4 6
2 4 6
3)
I wrote about this earlier:
Honda store received group of new Honda Civic, all of them with same
attributes
and we concluded that in this case "natural" key doesn't work.
4)
As a theoretical question we can consider case when a relation has any
finite number of the attributes. This can be very big number - 100
maybe 200.
What will be the "natural" key for the n-m relationship between
these entities?
What if these attributes start to change there values? How many dates
will be involved in the key?
Vladimir Odrljin Received on Thu Nov 02 2006 - 15:47:40 CST
![]() |
![]() |