Re: Separate PK in Jxn Tbl?

From: Bob Badour <>
Date: Sun, 27 Jan 2008 18:18:16 -0400
Message-ID: <479d032e$0$4074$>

David W. Fenton wrote:

> JOG <> wrote in
> m: 

>>No probs, although off the top of my head its gonna be a bit
>>contrived. With an artificial key:
>>Marriages {id, husband, wife, date}
>>Kids_from_Marriage {from_id, name, birth}
>>A query that asks "fetch me all the children whose mother is x"
>>obviously requires an equijoin, matching and
>>Kids.from_id. However with the original natural keys:
>>Marriages {id, husband, wife, date}
>>Kids_from_Marriage {mother, father, name, birth}
>>The same query is a simple select. That certainly seems a lot less
>>complicated to me ;)
> Assuming you've got some form of CASCADE UPDATE on your enforced
> relationship, that will work. 

You mean "Assuming that CASCADE UPDATE is needed..." Modern dbmses all meet the requirement in any case causing me to wonder what the hell you thought your point might have been.

> But it's repeating a huge amount of data

Again, you confuse physical and logical.

[further ramblings snipped] Received on Sun Jan 27 2008 - 23:18:16 CET

Original text of this message