Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Relational database comments

Re: Relational database comments

From: Frank van Bortel <frank.van.bortel_at_gmail.com>
Date: Sat, 09 Jun 2007 12:30:43 +0200
Message-ID: <f4dvgi$lrp$1@news3.zwoll1.ov.home.nl>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

muddu wrote:
> One of the properties of a relation or table is that every row is
> unique. If this is so,
> what do we do with a table of comments?
>
> Let's say, i want to put comments on a play in a relation. Two
> different people say
> "It was a great play". They both say exactly the same words. How
> can we put both comments
> in the relation if we must have uniqueness?
>

normalize!
You yourself said:
> Let's say, i want to put comments on a play in a relation. Two
> *different* people say
> "It was a great play". They both say exactly the same words. How
> can we put both comments
> in the relation if we must have uniqueness?

Two *different* people - there you have your uniqueness.

Now, whether to resolve this in a "who" and a "what comment" table (would yield less entries in the "what comment" table), or in a "who made what comment table" is up to you. That decision should be made, based on other requirements.

BTW, uniqueness in never "stored (put) in a relation"

Afterthought: what about an Alzheimer patient? - --
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)

iD8DBQFGaoFTLw8L4IAs830RAlqMAJ96GAfqEkRQTz24sjGI4RwUkoCqwACfQ1xA sJqMkLNQWYIhq98QC5XLEb4=
=ZnTw
-----END PGP SIGNATURE----- Received on Sat Jun 09 2007 - 05:30:43 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US