dbTalk Databases Forums  

two simple INNER JOIN questions

comp.databases comp.databases


Discuss two simple INNER JOIN questions in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
David Cressey
 
Posts: n/a

Default Re: two simple INNER JOIN questions - 07-04-2007 , 01:57 AM







"Lennart" <erik.lennart.jonsson (AT) gmail (DOT) com> wrote

Quote:
Lennart wrote:
[...]
Since natural join is distributive [ (a join b) join c = a join ( b join

Should have been: Since natural join is associative ...

But, as Lee pointed out there is no particular relationship between an
autoincrement column in one table and an autoincrement coulmn in a different
table. So, at the semantic level, there is nothing "natural" about the
joins that the OP presented as a case study.

Saying that a join across two unrelated columns both with name "id" is
"natural" is really stretching a point, in my book.
Quote:
/L

[...]



Reply With Quote
  #12  
Old   
Lennart
 
Posts: n/a

Default Re: two simple INNER JOIN questions - 07-04-2007 , 02:32 AM






David Cressey wrote:
Quote:
"Lennart" <erik.lennart.jonsson (AT) gmail (DOT) com> wrote in message
news:f6fa8q$6jj$1 (AT) registered (DOT) motzarella.org...
Lennart wrote:
[...]
Since natural join is distributive [ (a join b) join c = a join ( b join

Should have been: Since natural join is associative ...


But, as Lee pointed out there is no particular relationship between an
autoincrement column in one table and an autoincrement coulmn in a different
table. So, at the semantic level, there is nothing "natural" about the
joins that the OP presented as a case study.
Yes, you are right. But it does not make sence to do any kind of join
between two tables with autoincrement columns, and natural is less
typing than other joins.

The OP's query was about the cardinality of the resulting table and
whether an inner join or a natural join is used is irrelevant.

Quote:
Saying that a join across two unrelated columns both with name "id" is
"natural" is really stretching a point, in my book.
You seem to put some value in the word natural? AFAIK it is only a
syntactical construction in sql.



/Lennart


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.