Re: a union is always a join!

From: Brian Selzer <brian_at_selzer-software.com>
Date: Sat, 4 Apr 2009 20:06:36 -0400
Message-ID: <lwSBl.15013$8_3.13740_at_flpi147.ffdc.sbc.com>


"rpost" <rpost_at_pcwin518.campus.tue.nl> wrote in message news:gq8e2h$1ujr$1_at_mud.stack.nl...
> Brian Selzer wrote:
>
>>>> The mathematics of relational calculus and relational algebra are fully
>>>> capable, AFAIK, of describing the difference between two states of a
>>>> database.
>
> [...]
>
>>The algebra is capable of that if and only if each and every tuple has a
>>key
>>that permanently identifies the thing in the universe of discourse that
>>the
>>tuple maps to.
>
> No, the algebra can describe the difference between database states
> without any assumption on how these states are interpreted.

I don't agree. Even without any assumption on /how/ the states are interpreted, there is still the bald fact that they are subject to interpretation. If one state asserts that the employee operating welder #4 is being paid at the overtime rate, and another state asserts that the employee operating welder #4 is being paid at the standard rate, would it be valid to infer that 'the employee operating welder #4' denotes the same employee at both states? I think not. Bottom line: the same term can denote different things at different states, consequently, any conclusion drawn from an algebraic expression, such as R' JOIN R, which in essence relies upon the identity of terms, would be faulty, since identity of terms at differnt states does not necessarily imply identity of the terms' referents.

> And as Walter Mitty already wrote, it is not in fact necessary that
> databases are inpeepreted in such a way that tuples are about "things"
> in the universe of discourse.
>
> I think you are overstating your point, which was, if I understand
> you correctly, that while relational algebra and calculus may be used
> to express the contents of a database change, they do not express the
> fact that the contents change; and this does need to be expressed in
> some way when reasoning about database updates.
>
>>But since that isn't a requirement of the RM, the RM must be
>>in trouble! If different keys at different states map to the same thing
>>in
>>the universe of discourse, or if the same key at different states maps to
>>different things in the universe of discourse, then how is it possible to
>>describe exactly what is different between two states of a database.
>
> It is really simple. However, you are right in that mutability of
> keys and other aspects of the relationship between database contents
> and its interpretation will fall outside the scope of that description.
>
> --
> Reinier

Received on Sun Apr 05 2009 - 02:06:36 CEST

Original text of this message