| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: A real world example
"JOG" <jog_at_cs.nott.ac.uk> wrote in message news:1155816327.644741.10320_at_p79g2000cwp.googlegroups.com...
> Brian Selzer wrote:
>>
> > I was referring to why tuples between relation-values cannot correspond > if they do not have a common key. >
And I agree entirely.
>> That's my entire argument. If
>> something can have its appearance altered and still be the same thing,
>> and
>> if the only way to compare things is by their appearance, then you can't
>> tell if two sets contain the same things unless you know how each of
>> their
>> appearances has changed or unless you know that the appearance of only
>> one
>> of them has changed.
>>>> > do so otherwise makes no logical sense.
>> > * Tuples can /only/ correspond if they have a common key attribute. To
>>
> > You can /only/ know that by comparing a key value that maintains > identity over the lifetime of the item, as specified by your design > choice. >
The database can /only/ know that. The originator of the change can know, however. But again, that pushes the responsibility to enforce constraints onto the user.
>> and you know that only one tuple has a different key
>> value, then the one that doesn't correspond by the key values is the one
>> that is different.
>>
> > wuh? Now you are referring to a schema change? If not, tuples are > identified the same way across relation values. >
No. Not if "you" is the originator of the change.
> Perhaps bob was right, I give up. I think your notion of how we record > identity is flawed. Maybe oid's are what you are looking for if that is > the case. >
>>
>>>> > different.
>> > * If there is /no/ attribute value that remains the same, then the
>> > items the propositions refer to have no correspondence. They are
>>
>>>> > that key to identify that lifetime.
>> > * This isn't a problem because there is /always/ an attribute that will
>> > identify something. If your aim is to model the entity that consists of
>> > an 'item over its lifetime', then it is up to the designer to determine
>>
>>>> > not/ be hidden as it is an external identifer.
>> > * If no natural key is recordable then the designer must use an
>> > artificial surrogate for it (remember the underlying natural attribute
>> > it represents does exist somewhere). That artificial surrogate /must
>>
>>>> > logic, or am I losing the plot?
>> > That's it. Nothing more to it. Can anyone else see any holes in this
![]() |
![]() |