Concept · The Teamlane decision: deep
Primary and foreign keys
Also: primary key, foreign key, surrogate key, join key
A primary key identifies each row uniquely; a foreign key in another table points to it, which is how tables are joined. Sherman recommends meaningless integer surrogate keys for dimensions and insists that foreign keys in fact tables are never empty, because missing keys silently drop rows from joins. At Teamlane, a trial record without the billing Account ID is exactly such a missing foreign key, and it breaks conversion by channel.
Related
- part of Conceptual, logical and physical data models
- Dimension table identified by this
- Conceptual, logical and physical data models uses this
Sources
- Rick Sherman (2014), Business Intelligence Guidebook: From Data Integration to Analytics, p. 199
- Rick Sherman (2014), Business Intelligence Guidebook: From Data Integration to Analytics, p. 200
- Rick Sherman (2014), Business Intelligence Guidebook: From Data Integration to Analytics, p. 205
- Rick Sherman (2014), Business Intelligence Guidebook: From Data Integration to Analytics, p. 208