Normalisation
Normalisation
Normalization in
DBMS
Normalization is a fundamental concept in database design that aims to organize
a database in a way that reduces redundancy, minimizes data anomalies, and
ensures data integrity. It involves a series of steps that transform a database
schema to achieve these goals, making the database more efficient and easier to
maintain.
by Sudha G
Importance of Normalization
Normalization is a crucial process in database design that
helps reduce data redundancy, improve data integrity, and
enhance the overall performance of a database. It is
essential for maintaining a well-structured and efficient
database system, which is crucial for businesses and
organizations that rely on data-driven decision-making.
The Third Normal To achieve 3NF, a 3NF helps eliminate For instance, a table
Form (3NF) is a table must meet two data redundancy, that tracks student
database key requirements: 1) reduce data anomalies, information might
normalization rule that All non-key attributes and improve data have columns for
states that a table must must be fully integrity. It also student ID, name,
be free from transitive dependent on the simplifies database address, and the ID of
dependencies. This primary key, and 2) design and makes it the student's assigned
means that all There must be no easier to maintain and advisor. In 3NF, the
attributes in a table transitive update the database advisor ID would
should depend directly dependencies, where over time. depend directly on the
on the primary key, one non-key attribute student ID, and not on
and not on any other depends on another any other non-key
non-key attribute. non-key attribute. attribute.
3. Third Normal Form (3NF)
. The process of converting the
table into 3NF is as follows:
1.Remove the transitive
dependencies(A type of
functional dependency where a
field is functionally dependent on
the Field that is not the primary
key. Hence its value is
determined, indirectly by the
primary key )
2.Make a separate table for
transitive-dependent Fields.
Boyce-Codd Normal Form (BCNF)
Tables should have only two dimensions. Since one student has several classes,
these classes should be listed in a separate table. Fields Class1, Class2, and
REGISTRATIONS :
Student_No Class_No
1022 101-07
1022 143-01
1022 159-02
4123 101-07
4123 143-01
4123 179-04
Third Normal Form - Eliminate fields that don't depend on the key.
The next step is called third normal form. This is a common place to end the SQL
normalization process, because the design allows for efficient SQL queries and
addresses the issues of databases that aren't normalised.
A design will meet third normal form if it has no "transitive functional dependency".
A "transitive functional dependency" means that every attribute that is not the primary
key is dependent on only the primary key.
For example, in one table:
•Column A determines Column B
•Column B determines Column C
In the last example, Dept_No (the Mentor’s office number) is functionally dependent
on the Mentor attribute. The solution is to move that attribute from the Students table
to the Faculty table, as shown below:
STUDENTS
Student_No Mentor
1022 Asha
4123 Sakshi
FACULTY :
Comprehensive
Normalization Complex Data Practical Tradeoffs
Fifth Normal Form (5NF), Structures While 5NF provides the strongest
also known as Project-Join Achieving 5NF requires a theoretical guarantees of data integrity,
Normal Form, is the highest deep understanding of the it may not always be the most practical
level of database relationships between or efficient approach in real-world
normalization. It ensures entities in the database. It database applications. Designers must
that a table is free from all involves decomposing balance the benefits of normalization
types of update, insertion, tables into smaller tables against factors like query performance,
and deletion anomalies by that represent the storage requirements, and development
eliminating unnecessary fundamental, irreducible complexity. The choice of
functional dependencies and facts about the problem normalization level often depends on
join dependencies. 5NF is domain. This process can the specific needs and constraints of
rarely required in practice, lead to very granular, the project.
but it provides a rigorous complex data structures that
theoretical foundation for may be challenging to
database design. implement and maintain.
Examples of Normalization
To illustrate the concepts of normalization in database
design, let's consider a simple example. Imagine a
database for a small bookstore that tracks information
about books, authors, and publishers.