[Relational Theory] [Carol's HomePage]
Coloured Line

Normal Forms

Coloured Line

Coloured Line

Unnormalised Form (UNF)

Unnormalised Form (UNF)  A table that contains one or more repeating groups.

(Connolly & Begg 2005:403)


A relational table which is not an instance of a proper relation is in unnormalised form (UNF).

Edmondson


A relational table which is not in First Normal Form (1NF) is in unnormalised form (UNF).

Edmondson

[Top]

Coloured Line

First Normal Form (1NF)

First Normal Form  A relation is in first normal form if and only if every non-key attribute is functionally dependent upon the primary key

(Benynon-Davies 2004:583)


First normal form

A relation is in first normal form if it contains no repeating attributes and no repeating groups of attributes.

(Carter 1995:100)


First Normal Form (1NF)  A relation in which the intersection of each row and column contains one and only one value.

(Connolly & Begg 2005:403)


A relation is in first normal form if

Edmondson


First normal form (1NF) is now considered to be part of the formal definition of a relation in the basic (flat) relational model; historically, it was defined to disallow multivalued attributes, composite attributes, and their combinations. It states that the domain of an attribute must contain only atomic (simple, indivisible) values and that the value of any attribute in a tuple must be a single value from the domain of the attribute. Hence, 1NF disallows having a set of values, a tuple of values, or a combination of both as an attribute value for a single tuple. In other words, 1NF disallows "relations within relations" or "relations as attributes of tuples". The only attribute values permitted by 1NF are single atomic (or indivisible) values.

(Elmasri & Navathe 2004:315)


The first normal form (1NF), as introduced by Codd, is equivalent to the definition of the relational data model. In particular, the value of an attribute must be atomic. It cannot be anything that has structure, such as a record (with multiple fields) or a set.

(Kifer et al. 2005:42)

[Top]

Coloured Line

Second Normal Form (2NF)

Second Normal Form  A relation is in second normal form if and only if it is in first normal form and every non-key attribute is fully functionally dependent upon the primary key

(Benynon-Davies 2004:595)


Second normal form

A relation is in second normal form if and only if it is in first normal form and every non-key attribute is fully functionally dependent on the primary key.

(Carter 1995:117)


Second Normal Form (2NF) A relation that is in First Normal Form and every non-primary-key attribute is fully functionally dependent on the primary key.

(Connolly & Begg 2005:407)

Second Normal Form (2NF) A relation that is in first normal form and every non-primary-key attribute is fully functionally dependentt on any candidate key.

(Connolly & Begg 2005:411)


A relation is in second normal form if

Edmondson


A relation is in second normal form if

Edmondson


A relation is in second normal form if

Edmondson


A relation schema R is in 2NF if every nonprime attribute A in R is fully functionally dependent on the primary key of R.

(Elmasri & Navathe 2004:318)


A relation schema R is in second normal form (2NF) if every nonprime attribute A in R is not partially dependent on any key of R.

(Elmasri & Navathe 2004:321)


The second normal form (2NF) says that a schema must not have an FD, X → Y, where X is a strict subset of that schema's key.

(Kifer et al. 2005:42)

[Top]

Coloured Line

Third Normal Form (3NF)

Third Normal Form  A state in which all relations in a database are fully normalised

(Benynon-Davies 2004:598)


Third normal form

Definition 1

A relation is in third normal form if and only if it is in 2NF and every non-key attribute is nontransitively dependent on the primary key. (Date,1990)

Definition 2

A relation is in third normal form if and only if the non-key attributes are:
(a) mutually independent, and;
(b) fully dependent on the primary key. (Date,1990)

Definition 3

A relation is in third normal form if and only if it is in second normal form there are no functional dependencies between the non-key attributes.

(Carter 1995:124)


Third Normal Form (3NF)  A relation that is in First and Second Normal Form, and in which no non-primary-key attribute is transitively dependent on the primary key.

(Connolly & Begg 2005:409)

Third Normal Form (3NF)  A relation that is in First Normal Form and Second Normal Form, and in which no non-primary-key attribute is transitively dependent on any candidate key.

(Connolly & Begg 2005:411)


A relation is in third normal form if

Edmondson


A relation is in third normal form if

Edmondson


A relation schema R is in third normal form (3NF) if, whenever a nontrivial functional dependency X → A holds in R, either (a) X is a superkey of R, or (b) A is a prime attribute of R.

(Elmasri & Navathe 2004:323)

[Top]

Coloured Line

Boyce-Codd Normal Form (BCNF)

Boyce-Codd Normal Form  A stronger normal form than third normal form. A BCNF schema is one in which every functional determinant is a candidate key

(Benynon-Davies 2004:598)


Boyce-Codd normal form (BCNF)

BCNF is essentially a clearer formulation of Codd's 3NF definition which also caters for two additional cases:

Let us start with the definition of BCNF:

A relation is in Boyce-Codd normal form (BCNF) if and only if every determinant is a candidate key.

(Carter 1995:128)


Boyce-Codd Normal Form (BCNF)  A relation is in BCNF if and only if every determinant is a candidate key.

(Connolly & Begg 2005:419)  


A relation is in Boyce-Codd Normal Form if

Edmondson


A relation is in Boyce-Codd Normal Form if

Edmondson


A relation is in Boyce-Codd Normal Form if

Edmondson


A relation schema R is in BCNF if whenever a nontrivial functional dependency X → A holds in R, then X is a superkey of R.

(Elmasri & Navathe 2004:324)


[Top]

Coloured Line

Carol Edmondson   <carol@cs.anu.edu.au>
URL: http://computer/people/Carol.Edmondson/theory/NormalForms.shtml
Last modified: 05 January 2007 15:03:03 EST