Re: Separate PK in Jxn Tbl?
Date: Sat, 26 Jan 2008 12:26:13 GMT
Message-ID: <FFFmj.1449$k1.605_at_trndny02>
(end quote)
Simplicity is in the eye of the beholder.
I think it's simpler to rely on constraints enforced by the DBMS to prevent
duplicate entries
than it is to write code to accomplish the same thing.
When you want to delete an entry form a junction table, you almost always know the two FKs that uniquely determine the entry to be deleted. You almost never know the value of the superflous surrogate key. So it's simple to use the two FK's as the criterion for deletion than it is to look up the ID field, and then use that as the basis for deletion.
The above comment depends entirely on how you go about organizing you code. I like to keep my code simple. At least "simple" in my own eyes.
The use of multi-key fields in star schemas doesn't make individual queries any simpler. But it expands by orders of magnitude the number of different combinations that can be used as selection criteria when computing totals or other aggregates. This makes the entire system simpler, on a lerger scale.
I realize that star schema discussions may be out of place in MS access newsgroups. The same is true in c.d.t. There is almost nothing of theoretical interest in star schemas. Received on Sat Jan 26 2008 - 13:26:13 CET
