Sixth normal form: Difference between revisions
m →Further reading: Task 5: Fix CS1 deprecated coauthor parameter errors |
|||
Line 29: | Line 29: | ||
{{Refbegin}} |
{{Refbegin}} |
||
*{{cite book | last = Date | first = C.J.| authorlink=Christopher J. Date| title = The relational database dictionary: a comprehensive glossary of relational terms and concepts, with illustrative examples | series = O'Reilly Series Pocket references | year = 2006 | publisher = O'Reilly Media, Inc. | isbn =978-0-596-52798-3 | page = 90 }} |
*{{cite book | last = Date | first = C.J.| authorlink=Christopher J. Date| title = The relational database dictionary: a comprehensive glossary of relational terms and concepts, with illustrative examples | series = O'Reilly Series Pocket references | year = 2006 | publisher = O'Reilly Media, Inc. | isbn =978-0-596-52798-3 | page = 90 }} |
||
*{{cite book | ref = da da lo | last = Date | first = Chris J. | authorlink = Christopher J. Date| |
*{{cite book | ref = da da lo | last = Date | first = Chris J. | authorlink = Christopher J. Date|author2=Hugh Darwen |author3=Nikos A. Lorentzos | title = Temporal Data and the Relational Model: A Detailed Investigation into the Application of Interval and Relation Theory to the Problem of Temporal Database Management |date=January 2003 | publisher = Elsevier LTD | location = Oxford | isbn = 1-55860-855-9 }} |
||
*{{cite web | ref = zimanyi | url = http://www.sigmod.org/publications/sigmod-record/0606/sigmod-record.june2006.pdf |format=PDF| title = Temporal Aggregates and Temporal Universal Quantification in Standard SQL | work = ACM SIGMOD Record, volume 35, number 2, page 16 | publisher = [[Association for Computing Machinery|ACM]] | author = Zimanyi,, E.|date=June 2006}} |
*{{cite web | ref = zimanyi | url = http://www.sigmod.org/publications/sigmod-record/0606/sigmod-record.june2006.pdf |format=PDF| title = Temporal Aggregates and Temporal Universal Quantification in Standard SQL | work = ACM SIGMOD Record, volume 35, number 2, page 16 | publisher = [[Association for Computing Machinery|ACM]] | author = Zimanyi,, E.|date=June 2006}} |
||
<!-- |
<!-- |
Revision as of 11:00, 24 July 2014
Sixth normal form (6NF) is a term in relational database theory, used in two different ways.
6NF (C. Date's definition)
A book by Christopher J. Date and others on temporal databases,[1] defined sixth normal form as a normal form for databases based on an extension of the relational algebra.
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.[2] 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.][3]
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.
For further discussion on Temporal Aggregation in SQL, see also Zimanyi.[4] For a different approach, see TSQL2.[5]
DKNF
Some authors use the term sixth normal form differently, namely, as a synonym for Domain/key normal form (DKNF). This usage predates Date et al.'s work.[6]
Usage
The sixth normal form is currently being used in some data warehouses where the benefits outweigh the drawbacks,[7] 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.
References
- ^ 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
Further reading
- 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.
{{cite web}}
: CS1 maint: multiple names: authors list (link)