Re: A question for Mr. Celko
Date: Sat, 24 Jul 2004 17:45:54 +0100
Message-ID: <41029242$0$25120$ed2619ec_at_ptn-nntp-reader01.plus.net>
Marshall Spight wrote:
>> What it buys you is the ability to stick with first-order logic I
>> think. Once you've jumped to higher-order logic things are a lot
>> more complex and some nice results no longer hold etc.
> > I used to agree that this is a jump to a higher order, but I don't > think that any more. I don't see anything about RVAs that's > incompatible with FOL.
Do all values in the RVA column have to have the same columns? i.e. is there just one RVA type or a different type for each relation that has a different column setup?
>> If it's a relation-value then that makes it different to the relvar
>> it's contained within.
>
> Sure.
so that breaks the symmetry?
some are relvars, some are relation-values.
>> From an engineering perspective, suppose you have a RVA as opposed
>> to a separate relation with a foreign-key constraint. Then a bit
>> later you find you need to add to your database another relation
>> that needs to be JOINed to the relation inside the other one.
>>
>> You'd have to change over to using the separate-table method. So
>> RVAs lose you the flexibility of being able to have your "inner" or
>> lookup relation JOIN to several other relations in the future.
> > I'm saying there is no "change over". The two ways of thinking about > the two relations are *views* onto the *same data*. Both views can be > present at once; there's no need to choose between one way of > thinking about it vs. the other.
OK then, how does a view created in this way differ logically from a standard view created by merely JOINing the two tables?
Could you give a concrete example of where you think a RVA would be useful?
I've no problem with RVAs in general, I just think that RVAs should exist in a separate "universe" (no pun intended) to real relations.
Paul. Received on Sat Jul 24 2004 - 18:45:54 CEST
