Categories
General

Time and Time Again: Managing Time in Relational Databases, Part 15 – For and Against Surrogate Keys

Time and Time Again: Managing Time in Relational Databases, Part 15 – For and Against Surrogate Keys:

In Part 14, we introduced the concept of surrogate keys and showed how our example database of clients and policies would look if we used surrogate keys with that database. We also introduced some terminology that will help us examine the arguments for and against their use, terms such as “business key,” “natural key” and “mixed key.” We then went on to define two sets of semantic constraints that give surrogate keys their meaning. The minimal set consisted of three rules for the Client table and a corresponding three rules for the Policy table. The full set consisted of an additional two rules, both of which applied to both tables.