| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Notions of Type
David Cressey wrote:
> "Marshall" <marshall.spight_at_gmail.com> wrote in message > news:1155833602.403082.5690_at_h48g2000cwc.googlegroups.com... >
> > include >>>>>>I ask
>>>>>only operations defined on values of the type in question?
>>>>
>>>>Yes.
>>>>
>>>>
> > a >>>>restrict, project, etc. result in a relation that doesn't necessarily
>>>>>different type ("attribute name") than the "core type" (relation).
>>>>
>>>>Very true. Of the various relational operators that have been
>>>>identified over the years, only a few, like union, are really
>>>>algebraic. RESTRICT, PROJECT, etc. aren't. ...
>>>
>>>Just a quick question - is your reason for making that statement that
> > > I'm surprised the PROJECT is such a problem. Maybe I should stay out of the > discussion, because this is a little over my head. But here goes, anyway: > > Why can't you define a "set of attributes" as a relation? I'm thinking > that an empty relation (one with no tuples) has exactly the same > information content as a "set of attributes". If you do that, why can't > you say, > > PROJECT <relation>, <empty relation> -> <relation> > > > Or have I violated some other aspect of the formalism?
Wait a minute...
PROJECT <relation> <set of attributes> -> <relation>
right? And the question is, "Does this definition of PROJECT demonstrate lack of algebraic closure?" I think
PROJECT <relation> <relation> -> <relation>
is a step in the wrong direction and don't think such a thing is necessary for closure. I think that the fact that one of the operands and the result are relations is what provides closure. Received on Thu Aug 17 2006 - 18:21:50 CDT
![]() |
![]() |