Sixth normal form (6NF) is a term in
relational database
A relational database is a (most commonly digital) database based on the relational model of data, as proposed by E. F. Codd in 1970. A system used to maintain relational databases is a relational database management system (RDBMS). Many relatio ...
theory, used in two different ways.
6NF (C. Date's definition)
Christopher J. Date
Chris Date (born 1941) is an independent author, lecturer, researcher, and consultant, specializing in relational database theory.
Biography
Chris Date attended High Wycombe Royal Grammar School (U.K.) from 1951 to 1958 and received his BA i ...
and others have defined sixth normal form as a
normal form, based on an extension of the relational algebra.
Relational operators, such as ''join'', are generalized to support a natural treatment of interval data, such as sequences of dates or moments in time, for instance in
temporal databases. Sixth normal form is then based on this generalized join, as follows:
A relvar R able
Able may refer to:
* Able (1920 automobile), a small French cyclecar
* Able (rocket stage), an upper stage for Vanguard, Atlas, and Thor rockets
* Able (surname)
* ABLE account, a savings plan for people with disabilities
* Able UK, British ship ...
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 In database theory, a join dependency is a constraint on the set of legal relations over a database scheme. A table T is subject to a join dependency if T can always be recreated by joining multiple tables each having a subset of the attributes of ...
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 able
Able may refer to:
* Able (1920 automobile), a small French cyclecar
* Able (rocket stage), an upper stage for Vanguard, Atlas, and Thor rockets
* Able (surname)
* ABLE account, a savings plan for people with disabilities
* Able UK, British ship ...
concerned.
Date et al. have also given the following definition:
Relvar R is in sixth normal form (6NF) if and only if every JD oin Dependencyof R is trivial — where a JD is trivial if and only if one of its components is equal to the pertinent heading in its entirety.
Any relation in 6NF is also in
5NF Fifth normal form (5NF), also known as projection–join normal form (PJ/NF), is a level of database normalization designed to remove redundancy in relational databases recording multi-valued facts by isolating semantically related multiple relation ...
.
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; a review of production costs may reveal that a change was caused by a supplier changing city and hence what they charged for delivery.
For further discussion on Temporal Aggregation in SQL, see also Zimanyi. For a different approach, see
TSQL2
A temporal database stores data relating to time instances. It offers temporal data types and stores information relating to past, present and future time.
Temporal databases could be uni-temporal, bi-temporal or tri-temporal.
More specifically th ...
.
Domain-key normal form
Some authors have used the term sixth normal form differently: as a synonym for
domain-key normal form
Domain-key normal form (DK/NF) is a normal form used in database normalization which requires that the database contains no constraints other than domain constraints and key constraints.
A domain constraint specifies the permissible values for ...
(DKNF).
This usage predates Date et al.'s work.
Usage
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.
Examples
In order for a table to be in sixth normal form, it has to be in
fifth normal form first and then it requires that each table satisfies only trivial join dependencies.
Let’s take a simple example
[Example provided by: http://www.anattatechnologies.com/q/2011/07/normalization-6nf/] with a table already in 5NF:
Here, in the users table, every attribute is non null and the primary key is the username:
Users_table
This table is in 5NF because each join dependency is implied by the unique
candidate key A candidate key, or simply a key, of a relational database is a minimal superkey. In other words, it is any set of columns that have a unique combination of values in each row (which makes it a superkey), with the additional constraint that removi ...
of the table (Username). More specifically, the only possible join dependencies are: , .
The 6NF version would look like this:
Users
Users_dept
So, from one table in 5NF, 6NF produces two tables.
Following is another example:
TABLE 1
The join dependencies of the table are , and . Hence we could see that such table is 2NF (due to the appearance of transitive dependency). The following tables try to bring it to 6NF:
TABLE 2.1
TABLE 2.2
TABLE 2.3
References
Bibliography
*
*
*
*
*
*
Further reading
*
{{Use dmy dates, date=December 2018
6NF
nl:Zesde normaalvorm