| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: attribute name conflicts
Bob Badour wrote:
> paul c wrote: >
> > > Whether such a join would cause an exception is a matter of applied > psychology and not theory.
That intrigues me. Does that mean that you wouldn't object to the following interpretation of join?
First, assume the header of relation A is {<c,t1>,<d,t2>} and that of relation B is the same.
A:
<c,t1> <d,t2>
1 2
B:
<c,t1> <d,t2>
1 3
A JOIN B:
<c,t1> <d,t2>
1 2 1 3
This seems to give the same result as TTM's TD JOIN and I presume the same as SQL's inner or natural join.
Whereas if the header of B is {<c,t3>,<d,t2>}, with
A:
<c,t1> <d,t2>
1 2
B:
<c,t3> <d,t2>
1 3
I'm guessing that you might not object to this result:
A JOIN B:
<d,t2>
2
3
But I'm wondering if a psychological choice might also allow
(A JOIN B) = Table_Dum, or even
{A JOIN B} = Table_Dee,
as long as a dbms was consistent in its choice. Received on Thu Jun 28 2007 - 10:34:06 CDT
![]() |
![]() |