Chapter 5. Auxiliary Tables

AUXILIARY TABLES HOLD information that is not part of the data model but is needed by the system to work. They are used in queries rather than just providing a simple lookup, as discussed in the last chapter.

Again, the primary key of an auxiliary table is never an identifier; an identifier is unique in the schema and refers to one entity anywhere it appears. As an example of an identifier, your automobile’s VIN is constant, no matter where you park the car, who owns it, what database it is in, or anything else.

An auxiliary table’s primary key is a set of one or more parameters for the function it models. We will discuss this in detail in Chapter 8.

These tables are an alternative to computations and procedural code. ...

Get Joe Celko's Thinking in Sets: Auxiliary, Temporal, and Virtual Tables in SQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.