Re: thinking about UPDATE

From: x <x-false_at_yahoo.com>
Date: Wed, 21 Jul 2004 21:02:45 +0300
Message-ID: <40feafc9_at_post.usenet.com>


"Marshall Spight" <mspight_at_dnai.com> wrote in message news:YhxLc.4607$8_6.1154_at_attbi_s04...

> > Some questions to think about:
> > Why there is a need for primary/candidate keys in RM ?

> It's not a set if it allows duplicates.

It is one thing to not allow duplicates, it is another thing to have a primary/candidate key that is a strict subset of all relation attributes.

> > If keys are essential, why the definitions of the relational operators
don't
> > include them ?

> For one thing, what you get back from a select (I guess I'm talking
> SQL now) is a value that you can't really do much with. You
> can't assign it to a relational variable and manipulate it further,
> so any constraints you might expect to see on the value are
> irrelevant. Which bugs me.

You are not alone :-)

> Presumably one could infer the keys on the results of a relational
> operator.

Try it. For project operator for example.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

  • Usenet.com - The #1 Usenet Newsgroup Service on The Planet! *** http://www.usenet.com Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Received on Wed Jul 21 2004 - 20:02:45 CEST

Original text of this message