Normalisation in MS Access
What is Normalisation?
• The words normalization and normal form refer to the structure of a database
• Normalization increases clarity in organizing data in Databases
• Normalization of a Database is achieved by following a set of rules called 'forms' in creating the
database
• Database normalization is a database schema design technique, by which an existing schema is
modified to minimize redundancy and dependency of data. Normalization split a large table into
smaller tables and define relationships between them to increases the clarity in organizing data.
Database Normalization (w3schools.in)
First Normal Form
• All the rows must be unique (no duplicate rows)
• Each cell must only contain a single value (not a list)
• Each value should be non divisible (cannot split down further)
Take away orders SOLUTION:
Fix the problem
by adding an
OrderID as
primary key
Two rows are
identical. That
is a problem.
First Normal Form
• All the rows must be unique (no duplicate rows)
• Each cell must only contain a single value (not a list / multiple list)
• Each value should be non divisible (cannot split down further)
Take away orders
Problem is there is multiple values in the Order Field.
SOLUTION: Create a new field in table with each
individual item.
First Normal Form
• All the rows must be unique (no duplicate rows)
• Each cell must only contain a single value (not a list)
• Each value should be non divisible (cannot split down further)
Problem is that it
must be atomic (non
divisible)
SOLUTION:
Create a column
for the First
Name and the
Last Name
Second Normal Form
• Database must be in First Normal Form (comply to the rules)
• Non partial dependency – All non prime attributes should be fully
functionally depended on the candidate key
Courses for Students
The Course Fee has nothing A composite key is derived from
to do with the Student ID a combination of two or more
without the Course ID. columns that combined make a
So Course Fee is not unique column, which individually
dependant on the Student ID does not provide uniqueness.
which is part of the
Composite Key
Second Normal Form
• Database must be in First Normal Form (comply to the rules)
• Non partial dependency – All non prime attributes should be fully
functionally depended on the candidate key
Courses for Students
SOLUTION:
CREATE 2 DIFFERENT TABLES
AND DISPLAY INFORMATION
AS FOLLOWS
Third Normal Form
• Database must be in First & Second Normal Form
• No transitive dependency – All fields must only be determinable by the
primary/composite key, not by other keys
Tournament Winner Info
Problem: When I look at Winner I SOLUTION: CREATE ANOTHER
know when is his date of birth. It TABLE WITH TOURNAMENT
should not be determinable by WINNERS DATA AND THE
another field WINNERS DOB
Third Normal Form
The Winners DOB: the Date of Birth
Data in Tournament Winners Table is all corresponds with the Winners’
unique. The Winner is dependant on the information
Tournament and Year because each
tournament happens annually and you cannot
know who the winner is without the year or the
tournament information
1st, 2nd and 3rd Normal Form
1st Normal Form (1NF) 2nd Normal Form (2NF) 3rd Normal Form (3NF)
All the rows are unique and No Partial
No Transitive Dependencies
atomic Dependencies
1st, 2nd and 3rd Normal Form (Database Normalisation) - YouTube