Sixth normal form
Sixth normal form (6NF) is a term in relational database theory, used in two different ways.
6NF (C. Date's definition)
In this work, the relational operators, such as join, are generalized to support a natural treatment of interval data, such as sequences of dates or moments in time. Sixth normal form is then based on this generalized join, as follows:
A relvar R [table] is in sixth normal form (abbreviated 6NF) if and only if it satisfies no nontrivial join dependencies at all — where, as before, a join dependency is trivial if and only if at least one of the projections (possibly U_projections) involved is taken over the set of all attributes of the relvar [table] concerned.[Date et al.]
Any relation in 6NF is also in 5NF.
Sixth normal form is intended to decompose relation variables to irreducible components. Though this may be relatively unimportant for non-temporal relation variables, it can be important when dealing with temporal variables or other interval data. For instance, if a relation comprises a supplier's name, status, and city, we may also want to add temporal data, such as the time during which these values are, or were, valid (e.g., for historical data) but the three values may vary independently of each other and at different rates. We may, for instance, wish to trace the history of changes to Status.
The sixth normal form is currently being used in some data warehouses where the benefits outweigh the drawbacks, for example using Anchor Modeling. Although using 6NF leads to an explosion of tables, modern databases can prune the tables from select queries (using a process called 'table elimination') where they are not required and thus speed up queries that only access several attributes.
- Date et al., 2003
- op. cit., chapter 9: Generalizing the relational operators
- op. cit., section 10.4, p. 176
- Zimanyi 2005
- Snodgrass, Richard T. TSQL2 Temporal Query Language. Describes history, gives references to standard and original book.
- See www.dbdebunk.com for a discussion on this topic
- See the Anchor Modeling website for a website that describes a data warehouse modelling method based on the sixth normal form
- Date, C.J. (2006). The relational database dictionary: a comprehensive glossary of relational terms and concepts, with illustrative examples. O'Reilly Series Pocket references. O'Reilly Media, Inc. p. 90. ISBN 978-0-596-52798-3.
- Date, Chris J.; Hugh Darwen, Nikos A. Lorentzos (January 2003). Temporal Data and the Relational Model: A Detailed Investigation into the Application of Interval and Relation Theory to the Problem of Temporal Database Management. Oxford: Elsevier LTD. ISBN 1-55860-855-9.
- Zimanyi,, E. (June 2006). "Temporal Aggregates and Temporal Universal Quantification in Standard SQL" (PDF). ACM SIGMOD Record, volume 35, number 2, page 16. ACM.