Re: Stupid Database Tricks
From: vldm10 <vldm10_at_yahoo.com>
Date: Tue, 05 Jun 2007 12:47:43 -0700
Message-ID: <1181072863.059084.67120_at_k79g2000hse.googlegroups.com>
Date: Tue, 05 Jun 2007 12:47:43 -0700
Message-ID: <1181072863.059084.67120_at_k79g2000hse.googlegroups.com>
> 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. 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".
> And oh yeah, we
> have to add an additional numeric primary key.
>
> Grrrrr.....
>
> > For performance, we enforce integrity in the application.
>
> Aiiieeee!!!
>
> Marshall
Vladimir Odrljin Received on Tue Jun 05 2007 - 21:47:43 CEST