Bitemporal data has always been important. But it was not until 2011 that the ISO released a SQL standard that supported it. Currently, among major DBMS vendors, Oracle, IBM and Teradata now provide at least some bitemporal functionality in their flagship products. But to use these products effectively, someone in your IT organization needs to know more than how to code bitemporal SQL statements. Perhaps, in your organization, that person is you.
To correctly interpret business requests for temporal data, to correctly specify requirements to your IT development staff, and to correctly design bitemporal databases and applications, someone in your enterprise needs a deep understanding of both the theory and the practice of managing bitemporal data. Someone also needs to understand what the future may bring in the way of additional temporal functionality, so their enterprise can plan for it. Perhaps, in your organization, that person is you.
This is the book that will show the do-it-yourself IT professional how to design and build bitemporal databases and how to write bitemporal transactions and queries, and will show those who will direct the use of vendor-provided bitemporal DBMSs exactly what is going on "under the covers" of that software.
- Explains the business value of bitemporal data in terms of the information that can be provided by bitemporal tables and not by any other form of temporal data, including history tables, version tables, snapshot tables, or slowly-changing dimensions
- Provides an integrated account of the mathematics, logic, ontology and semantics of relational theory and relational databases, in terms of which current relational theory and practice can be seen as unnecessarily constrained to the management of nontemporal and incompletely temporal data
- Explains how bitemporal tables can provide the time-variance and nonvolatility hitherto lacking in Inmon historical data warehouses
- Explains how bitemporal dimensions can replace slowly-changing dimensions in Kimball star schemas, and why they should do so
- Describes several extensions to the current theory and practice of bitemporal data, including the use of episodes, "whenever" temporal transactions and queries, and future transaction time
- Points out a basic error in the ISO's bitemporal SQL standard, and warns practitioners against the use of that faulty functionality. Recommends six extensions to the ISO standard which will increase the business value of bitemporal data
- Points towards a tritemporal future for bitemporal data, in which an Aristotelian ontology and a speech-act semantics support the direct management of the statements inscribed in the rows of relational tables, and add the ability to track the provenance of database content to existing bitemporal databases
- This book also provides the background needed to become a business ontologist, and explains why an IT data management person, deeply familiar with corporate databases, is best suited to play that role. Perhaps, in your organization, that person is you
Inhaltsverzeichnis
1;Front Cover;1 2;Bitemporal Data;4 3;Copyright Page;5 4;Dedication;6 5;Contents;8 6;Foreword;16 7;Preface;20 7.1;Perspectives on the Relational Paradigm of Data;21 7.2;The Temporal SQL Standards: ISO 9075:2011 and TSQL2;22 7.3;Audience;23 7.3.1;Business Analysts;24 7.3.2;Enterprise Data Modelers;25 7.3.3;Enterprise Data Architects;26 7.3.4;Database, Data Warehouse, and Data Mart Developers;26 7.3.5;Business Ontologists;26 7.3.6;Computer Science Students;27 7.3.7;Computer Scientists;28 7.4;A Companion Volume to Managing Time in Relational Databases;29 7.5;An Extensive Glossary;29 7.6;A Note on Style;29 7.7;Looking Forward;30 8;Acknowledgments;32 9;1 Bitemporal Data: Preliminaries;34 9.1;Nontemporal, Unitemporal and Bitemporal Data;36 9.1.1;Nontemporal Tables;37 9.1.1.1;Table Names;37 9.1.1.2;Schema Rows;38 9.1.1.3;Foreign Keys and Primary Keys;38 9.1.1.4;Data Model Diagrams;38 9.1.1.5;Stand-Alone Representation of Rows;38 9.1.2;Unitemporal Tables;39 9.1.2.1;Table Names;41 9.1.2.2;Schema Rows;41 9.1.2.3;Temporal Foreign Keys and Temporal Primary Keys;41 9.1.2.4;Stand-Alone Representation of Temporal Rows;42 9.1.2.5;A Note on Assertion-Time Tables;42 9.1.3;Bitemporal Tables;43 9.1.3.1;Table Names;43 9.1.3.2;Temporal Foreign Keys and Temporal Primary Keys;43 9.2;Semantics and its Implementations;44 9.3;Glossary List;46 10;1 Theory;48 10.1;2 Time and Temporal Terminology;52 10.1.1;Time;52 10.1.1.1;Instants and Moments;52 10.1.1.2;Clock Ticks;53 10.1.1.2.1;Hardware Clock Ticks and DBMS Clock Ticks;54 10.1.1.2.2;DBMS Clock Ticks and Chronons;55 10.1.1.2.3;Chronons, Time Periods, and Other Dependent Concepts;55 10.1.1.3;Time Periods;57 10.1.1.3.1;Four Conventions for Time Period Representation With Delimiters;57 10.1.1.3.2;Representing Open Time Periods;59 10.1.2;Temporal Terminology;59 10.1.2.1;Temporal Dimensions;60 10.1.2.1.1;The TSQL2 and Computer Science Terminology;60 10.1.2.1.2;The ISO and IBM Terminology;62 10.1.2.1.3;The Asserted Versioning Terminology;63 10.1.2.2
;Types of Tables;63 10.1.2.2.1;The Computer Science Terminology;63 10.1.2.2.2;The Asserted Versioning Terminology;64 10.1.2.3;A Choice of Terminologies;65 10.1.3;Glossary List;66 10.2;3 The Relational Paradigm: Mathematics;68 10.2.1;Tables and Columns;68 10.2.2;Columns and Domains;69 10.2.3;Cartesian Products;70 10.2.4;Functions and Primary Keys;71 10.2.5;Relations;74 10.2.6;Glossary List;74 10.3;4 The Relational Paradigm: Logic;76 10.3.1;Propositional Logic;76 10.3.1.1;Connectives;76 10.3.1.1.1;AND;77 10.3.1.1.2;OR;77 10.3.1.1.3;NOT;78 10.3.1.1.4;IF/THEN;79 10.3.1.2;Well-Formed Formulas;80 10.3.1.3;Transformation Rules;81 10.3.1.4;Rules of Inference;84 10.3.2;Predicate Logic;86 10.3.2.1;Statements and Statement Schemas;88 10.3.3;Logic and the Relational Paradigm;90 10.3.4;Glossary List;91 10.4;5 The Relational Paradigm: Ontology;92 10.4.1;Types and Instances;94 10.4.1.1;A Data Modeling Perspective;94 10.4.1.2;A Philosophical Perspective;94 10.4.1.3;A Set Theoretic Perspective;95 10.4.1.4;A Logic and Language Perspective;96 10.4.1.5;An Analogy;96 10.4.1.6;Summary;96 10.4.2;Instances and Identity;97 10.4.3;The Relational Paradigm Ontology: Aristotelian Roots;97 10.4.3.1;Aristotle on Substance;97 10.4.3.2;Aristotle on Accidents;98 10.4.3.3;Beyond the Aristotelian Roots;100 10.4.4;The Relational Paradigm Ontology;101 10.4.4.1;A Middle Level Extension to the Relational Paradigm Ontology;103 10.4.4.2;States and Change;103 10.4.4.3;Primary Keys Natural Keys, Foreign Keys;105 10.4.4.4;Objects, Events and Change;105 10.4.5;On Using Ontologies;106 10.4.6;Integrating the Mathematics and Ontology of the Relational Paradigm;108 10.4.7;Glossary List;111 10.5;6 The Relational Paradigm: Semantics;112 10.5.1;Rows, Statements, Assertions and Kindred Notions;113 10.5.2;Rows, Inscriptions and Sentences;114 10.5.3;Statements;115 10.5.3.1;Disambiguating Statements;117 10.5.3.2;Statements and Statement Schemas;121 10.5.4;Speech Acts;121 10.5.4.1;Statements and Assertions;122 10.5.4.2;Pro
positions;124 10.5.4.3;Expressing Assertions Explicitly;125 10.5.5;Glossary List;130 10.6;7 The Allen Relationships;132 10.6.1;Why the Allen Relationships are Important;132 10.6.2;A Taxonomy of the Allen Relationships;133 10.6.2.1;The Basic Allen Relationships;133 10.6.2.1.1;[Starts];134 10.6.2.1.2;[Finishes];135 10.6.2.1.3;[During];136 10.6.2.1.4;[Equals];137 10.6.2.1.5;[Overlaps];137 10.6.2.1.6;[Before];138 10.6.2.1.7;[Meets];139 10.6.2.2;Combinations of the Allen Relationships;140 10.6.3;A Binary Partitioning of the Allen Relationships Taxonomy;140 10.6.3.1;Common Timeline Time Periods: [Includes] or [Excludes];141 10.6.3.2;[Includes]: [Contains] or [Overlaps];141 10.6.3.3;[Contains]: [Equals] or [Encloses];142 10.6.3.4;[Encloses]: [Aligns With] or [During];143 10.6.3.5;[Aligns With]: [Starts] or [Finishes];144 10.6.3.6;[Excludes]: [Before] or [Meets];145 10.6.4;An Allen Relationship Thought Experiment;147 10.6.5;Glossary List;148 10.7;8 Temporal Integrity Concepts and Notations;150 10.7.1;Cubes, Slices and Cells: Data in Three-Dimensional Temporal Space;150 10.7.2;Semantically Anomalous Relational Tables;155 10.7.3;Implicit Bitemporal Time;157 10.7.4;Glossary List;159 10.8;9 Temporal Entity Integrity;160 10.8.1;Entity Integrity;160 10.8.2;Bitemporal Entity Integrity;161 10.8.2.1;Some Bitemporal Transactions;161 10.8.3;State-Time Entity Integrity;168 10.8.4;Conventional Entity Integrity;170 10.8.5;Glossary List;172 10.9;10 Temporal Referential Integrity;174 10.9.1;Temporal Foreign Keys;174 10.9.2;Episodes;176 10.9.3;State-Time Referential Integrity;179 10.9.3.1;A State-Time Delete: Block Mode;180 10.9.3.2;A State-Time Delete: Cascade Mode;181 10.9.3.3;A State-Time Delete: Set Null Mode;183 10.9.4;Bitemporal Referential Integrity;183 10.9.5;Conventional Referential Integrity;187 10.9.6;Glossary List;191 11;2 Practice;192 11.1;11 Temporal Transactions;198 11.1.1;An Overview Of Temporal Transactions;198 11.1.2;Basic Temporal Transactions on State-Time Tables;200 11.
1.2.1;A State-Time Insert With Default Time;201 11.1.2.2;A State-Time Update With Default Time;201 11.1.2.3;A State-Time Update With Specified State Time;203 11.1.2.4;A State-Time Delete With Default Time;204 11.1.3;Basic Temporal Transactions on Bitemporal Tables;204 11.1.3.1;A Bitemporal Insert With Default Time;205 11.1.3.2;A Bitemporal Update With Default Time;205 11.1.3.3;A Bitemporal Update With Specified State Time;208 11.1.3.4;A Bitemporal Delete With Default Time;209 11.1.4;Whenever Temporal Transactions;210 11.1.4.1;A Whenever Insert Transaction;212 11.1.4.2;A Whenever Update Transaction;213 11.1.4.3;A Whenever Delete Transaction;214 11.1.5;Temporal Merge Transactions;215 11.1.6;Glossary List;218 11.2;12 Basic Temporal Queries;220 11.2.1;Temporal Query Syntax;220 11.2.2;Bitemporal Tables and Views;223 11.2.2.1;The Conventional Table View;223 11.2.2.2;The Logfile View;225 11.2.2.3;The Version View;228 11.2.3;Point-In-Time Range Queries;230 11.2.4;Range Queries;232 11.2.5;Glossary List;236 11.3;13 Advanced Temporal Queries;238 11.3.1;A Basic Temporal Range Multi-Table Query;238 11.3.1.1;Step 1: Decoalesce and Restrict on Assertion Time;240 11.3.1.2;Step 2: Decoalesce and Restrict on State Time;241 11.3.1.3;Step 3: Drop Assertion-Time Period Columns;241 11.3.1.4;Step 4: Align on State-Time Boundaries;243 11.3.1.5;Step 5: Join on RefId and State Time;245 11.3.2;A Complex Temporal Range Multi-Table Query;247 11.3.2.1;Step 1: Decoalesce and Restrict on Assertion Time;248 11.3.2.2;Step 2: Decoalesce and Restrict on State Time;249 11.3.2.3;Step 3: Drop Assertion-Time Period Columns;250 11.3.2.4;Step 4: Align on State-Time Boundaries;252 11.3.2.5;Step 5: Join on RefId and State-Time;254 11.3.3;Why Temporal Range Multi-Table Queries are Complex;255 11.3.4;Glossary List;256 11.4;14 Future Assertion Time;258 11.4.1;Future Assertion Time: Semantics;258 11.4.1.1;The Six-Fold Way;259 11.4.1.2;Challenging the Six-Fold Way;260 11.4.1.2.1;Past Assertion Time;261 11.4.1.2.2;
Future Assertion Time;261 11.4.1.2.3;The Incompleteness of the Six-Fold Way;263 11.4.1.3;The Nine-Fold Way;263 11.4.1.3.1;Future Assertion Time and Future State Time;264 11.4.2;Future Assertion Time: Implementation;266 11.4.2.1;The Time Travel Paradox;267 11.4.2.2;Future Assertion Time Locking;269 11.4.2.3;Future Transactions With Assertion-Time Locking;270 11.4.3;Glossary List;273 11.5;15 Temporal Requirements;274 11.5.1;Updates and Corrections to Conventional Tables;274 11.5.2;Timestamped Tables;278 11.5.3;Double-Timestamped Tables;282 11.5.4;Double-Timestamps and Corrections;285 11.5.5;The Double-Timestamped Dilemma;286 11.5.6;The Bitemporal Data Solution;287 11.5.7;Glossary List;293 11.6;16 Bitemporal Data and the Inmon Data Warehouse;294 11.6.1;A Brief History of the Data Warehouse;294 11.6.2;What is an Inmon Data Warehouse?;298 11.6.2.1;Subject Orientation;298 11.6.2.2;Integration;299 11.6.2.3;Time-variance;301 11.6.2.4;Nonvolatility;302 11.6.2.5;Support for Management Decision-Making;302 11.6.3;Why Unitemporal Tables Cannot Be Both Time-Variant and Nonvolatile;303 11.6.3.1;Two Senses of As-Was;304 11.6.4;The Enterprise Data Warehouse Redefined;305 11.6.5;The Semantics of the EDW and the Question of its Physical Instantiation;306 11.6.5.1;Inmons Arguments for a Physical EDW;307 11.6.6;Glossary List;309 11.6.7;Inmon Terms;309 11.7;17 Semantic Integration via Messaging;310 11.7.1;The Objectives of an Enterprise Database;310 11.7.2;Two Paths to Semantic Integration;312 11.7.3;The Enterprise Data Model as a Canonical Message Model;313 11.7.3.1;The Failed Mission of the Enterprise Data Model;314 11.7.3.2;A New Mission for the Enterprise Data Model;315 11.7.3.2.1;Point-to-Point Messaging;315 11.7.3.2.2;Hub-and-Spoke Messaging;316 11.7.3.2.3;A Mapping Rules Dictionary;319 11.7.3.2.4;The Extended Enterprise Data Model;320 11.7.4;Glossary List;322 11.8;18 Bitemporal Data and the Kimball Data Warehouse;324 11.8.1;Star Schemas and Relational Databases;326 11.8.2;The Star
Schema Data Warehouse Architecture;327 11.8.3;The Star Schema Design Pattern;327 11.8.4;Reconceptualizing Star Schemas: Fact Tables and Dimension Tables;328 11.8.4.1;Events and Objects;328 11.8.4.2;Surrogate Keys and Natural Keys;330 11.8.5;A Bitemporal Star Schema;332 11.8.5.1;A Bitemporal Dimension Case Study;333 11.8.5.1.1;Dimension Update #1;334 11.8.5.1.2;Dimension Update #2;335 11.8.5.1.3;Dimension Update #3;336 11.8.5.1.4;Dimension Update #4;337 11.8.5.1.5;Dimension Update #5;339 11.8.5.2;Fact Table Analysis;340 11.8.5.3;Summary of the Case Study;342 11.8.6;Bitemporal Dimensions Versus Slowly-Changing Dimensions;344 11.8.7;Glossary List;346 11.8.8;Kimball and Ross Terms;346 11.9;19 Time, Types and the Future of Relational Databases;348 11.9.1;Tritemporal Data and Statement Provenance;349 11.9.1.1;Inscription Time, State Time, Speech Act Time;351 11.9.2;Ontologizing Relational Databases;351 11.9.2.1;The Extended Relational Paradigm Ontology;354 11.9.2.2;The Extended Relational Paradigm Metamodel;356 11.9.2.2.1;The Semantic Component of the Extended Relational Paradigm Metamodel;358 11.9.2.2.1.1;Referent;359 11.9.2.2.1.2;Attribute;359 11.9.2.2.1.3;Statement-Schema;360 11.9.2.2.1.4;Atemporal State;360 11.9.2.2.1.5;Proposition;361 11.9.2.2.1.6;Statement;361 11.9.2.2.1.7;Referent/Statement-Schema;362 11.9.2.2.1.8;Attribute/Statement-Schema;362 11.9.2.2.1.9;Statement-Schema/Atemporal-State;362 11.9.2.2.1.10;Atemporal-State/Statement;363 11.9.2.2.1.11;Proposition/Statement;363 11.9.2.2.2;The Pragmatic Component;363 11.9.2.2.2.1;Source;364 11.9.2.2.2.2;Source-Association;364 11.9.2.2.2.3;Inscription-Act;364 11.9.2.2.2.4;Inscription;365 11.9.2.2.2.5;Speech-Act;365 11.9.2.2.2.6;Inscription/Inscription;365 11.9.2.2.2.7;Source/Speech-Act;366 11.9.2.2.2.8;Source/Inscription-Act;366 11.9.2.2.2.9;Inscription/Inscription-Act;366 11.9.2.2.3;The Integrated Metamodel: Semantic and Pragmatic Components;366 11.9.2.2.3.1;Statement/Inscription;366 11.9.2.2.3.2;Statement/Speech-Act
;366 11.9.3;Atomic Statements and Binary Tables;367 11.9.4;Looking Ahead;368 11.9.5;Glossary List;369 11.10;20 Recommendations;370 11.10.1;Recommendations for IT Professionals in End-User IT Organizations;370 11.10.2;Recommendations for Standards Committees and Vendors;371 11.10.2.1;Remove the Ability to Correct Data in State-Time Tables;372 11.10.2.2;Specify Referent Identifiers in SQL Table Definitions;372 11.10.2.3;Specify Temporal Unique Identifiers in SQL Table Definitions;373 11.10.2.4;Package the Bitemporalization of Conventional Tables;373 11.10.2.5;Modify SQL Query Syntax to Clarify Semantics;374 11.10.2.6;Add Whenever Temporal Transactions to the Standard;375 11.10.2.7;Add Future Transaction Time to the Standard;375 11.10.3;Glossary List;375 12;Afterword: Reflections on Mindfulness and Bitemporality;376 13;Bibliography;380 14;Index;392