Path: text.usenetserver.com!out01b.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!postnews.google.com!a26g2000pre.googlegroups.com!not-for-mail
From:  Marshall <marshall.spight@gmail.com>
Newsgroups: comp.databases.theory
Subject: Re: Stupid Database Tricks
Date: Tue, 05 Jun 2007 22:03:09 -0000
Organization: http://groups.google.com
Lines: 45
Message-ID: <1181080989.066372.12120@a26g2000pre.googlegroups.com>
References: <1179840361.196065.235210@n15g2000prd.googlegroups.com>
   <9oD4i.6480$ix.1092@trndny01>
   <465356bd$0$4056$9a566e8b@news.aliant.net>
   <1179892760.282700.315160@q66g2000hsg.googlegroups.com>
   <1181072863.059084.67120@k79g2000hse.googlegroups.com>
NNTP-Posting-Host: 24.7.53.249
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1181080990 2250 127.0.0.1 (5 Jun 2007 22:03:10 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 5 Jun 2007 22:03:10 +0000 (UTC)
In-Reply-To: <1181072863.059084.67120@k79g2000hse.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: a26g2000pre.googlegroups.com; posting-host=24.7.53.249;
   posting-account=s2xCFw0AAAD2mIwYYHAqjdsecwG0axmW
Xref: usenetserver.com comp.databases.theory:165102
X-Received-Date: Tue, 05 Jun 2007 18:03:10 EDT (text.usenetserver.com)

On Jun 5, 12:47 pm, vldm10 <vld...@yahoo.com> wrote:
> On May 22, 11:59 pm, Marshall <marshall.spi...@gmail.com> wrote:
>
> > On May 22, 1:48 pm, Bob Badour <bbad...@pei.sympatico.ca> wrote:
>
> > > Every table will have a numeric id column, and this column will be the
> > > primary key.
>
> Regardless of what is intention here, it seems you and B. Badour
> misunderstand  some important aspects of "one-column-key" as well as
> some aspects of "numeric". And of course key can be "alphabetic".
>
> > I don't know why, exactly, since it's not like it's the worst one
> > mentioned, but that one DRIVES ME CRAZY!
>
> This meditation is somehow paradoxical regarding that you
> misunderstand some basic things:
>
> > I hear people say this, and I want to say oh, I see: you're
> > just the stupidest freaking idiot ever, is that it? Of course
> > instead I say something about that being contraindicated.
> > My extra special favorite: there's a table that's *just* two
> > foreign keys to two different tables; a basic join table. The
> > pair (key1, key2) is unique of course.
>
> Here, you misunderstood - what is not primary key.  Pair (key1, key2)
> is not primary key because it is not unique.

If the table has only two columns, as I specified, then it is
necessarily unique, by the definition of relation. Even
it it wasn't, as may be the case in badly executed SQL
tables, there is still no value in adding an additional
column which will contain no further information.


> Briefly your conclusion
> seems to arise from a misunderstanding concerning the nature of the
> simplest DB cases. It seems to me also, that this is source of your
> confusion regarding "two foreign keys".

You sure use that word "misunderstand" a lot.


Marshall

