Chapter 6: Normalisation Flashcards
(48 cards)
Normalisation
Evaluating and correcting table structures to minimise data redundancies
-reduces data anomalies
-Assigns attributes to tables based on determination
Different normal forms
First normal form (1NF)
Second normal form (2NF)
Third normal form (3NF)
Structural view of normal forms
Higher normal forms are better than lower one
Properly designed 3NF structures meet the requirement of 4NF
Denormalisation
Produces a lower normal form
-Results in increased performance, and greater data redundancy
The need for normalisation
Gives analyses on relationships among entities
-Determines if the structure can be improved with normalisation
-Improves existing data structure and creates an appropriate database design.
The objective is…
That each table conforms to the concept of well-formed relations
Well-formed relations
-Each table represents a single subject
-Each row/column intersection contains only one value.
-No data item is unnecessarily stored in more than one table
-All nonprime attributes in a table are dependent on the primary key
-Each table has no insertion, update or delete anomalies
The normalization process…
Ensures that all tables are in at least 3NF
-Higher forms are not that common in business
Normalization works on…
One relation at a time
-Identifies the dependencies of a relation (table)
-Progressively breaks the relation up into a new set of relations
1NF characteristics
Table format, no repeating groups and PK identified
2NF characteristics
1NF and no partial dependencies
3NF characteristics
2NF and no transitive dependencies
Boyce-codd normal form (BCNF)
Every determinant is a candidate key (special case of 3NF)
4th Normal form characteristics
3Nf and no independent multivalued dependencies
Functional dependence
The attribute B is fully functionally dependent on the attribute A if each value of A determines one and only one value of B
Functional dependence (generalized definition)
Attribute A determines attribute B (that is, B is functionally dependent on A) if all of the rows in the table that agree in value for attribute A also agree in value for attribute B
Fully functional dependence (composite key)
If attribute B is functionally dependent on a composite key A but not on any subset of that composite key, then B is fully functionally dependent onA
Partial dependency
Functional dependence in which the determinant is only part of the primary key
-Assumption: one candidate key
-straight forward
-Easy to identify
Transitive dependency
Attribute is dependent on another attribute that is not part of the primary key
-More difficult to identify among a set of data
-Occur only when a functional dependence exists among non-prime attributes
Repeating groups
Group of multiple entries of the same type can exist for any single key attributes occurrence
-Reduces data redundancies
Steps to convert to first normal form
-Eliminate the repeating groups
-Eliminate attributes with more than one value
-Identify the primary key
-Identify all dependencies
Dependency diagram
Depicts all dependencies found within a given table structure
-Helps get an overview of all relationships among table attributes
-Makes it less likely that an important dependency will be overlooked
1NF describes (in tabular format)
-All key attributes are defined
-There are no repeating groups in the table
-There are no attributes with more than one value
-All attributes are dependent on the primary key
All relational tables…
Satisfy 1NF requirements