Normal Forms in DBMS
Normal Forms in DBMS
Normalization of DBMS
In database management systems (DBMS), normal forms are a series of
guidelines that help to ensure that the design of a database is efficient,
organized, and free from data anomalies. There are several levels of
normalization, each with its own set of guidelines, known as normal forms.
Important Points Regarding Normal Forms in DBMS
First Normal Form (1NF): This is the most basic level of normalization. In
1NF, each table cell should contain only a single value, and each column
should have a unique name. The first normal form helps to eliminate
duplicate data and simplify queries.
Second Normal Form (2NF): 2NF eliminates redundant data by requiring
that each non-key attribute be dependent on the primary key. This means
that each column should be directly related to the primary key, and not to
other columns.
Third Normal Form (3NF): 3NF builds on 2NF by requiring that all non-key
attributes are independent of each other. This means that each column
should be directly related to the primary key, and not to any other columns in
the same table.
Boyce-Codd Normal Form (BCNF): BCNF is a stricter form of 3NF that
ensures that each determinant in a table is a candidate key. In other words,
BCNF ensures that each non-key attribute is dependent only on the
candidate key.
Fourth Normal Form (4NF): 4NF is a further refinement of BCNF that
ensures that a table does not contain any multi-valued dependencies.
Fifth Normal Form (5NF): 5NF is the highest level of normalization and
involves decomposing a table into smaller tables to remove data redundancy
and improve data integrity.
Normal forms help to reduce data redundancy, increase data consistency, and
improve database performance. However, higher levels of normalization can
lead to more complex database designs and queries. It is important to strike a
balance between normalization and practicality when designing a database.
Advantages of Normal Form
Reduced data redundancy: Normalization helps to eliminate duplicate data
in tables, reducing the amount of storage space needed and improving
database efficiency.
Improved data consistency: Normalization ensures that data is stored in a
consistent and organized manner, reducing the risk of data inconsistencies
and errors.
Simplified database design: Normalization provides guidelines for
organizing tables and data relationships, making it easier to design and
maintain a database.
Improved query performance: Normalized tables are typically easier to
search and retrieve data from, resulting in faster query performance.
Easier database maintenance: Normalization reduces the complexity of a
database by breaking it down into smaller, more manageable tables, making
it easier to add, modify, and delete data.
Overall, using normal forms in DBMS helps to improve data quality, increase
database efficiency, and simplify database design and maintenance.
Example 2 –
ID Name Courses
------------------
1 A c1, c2
2 E c3
3 M C2, c3
In the above table Course is a multi-valued attribute so it is not in 1NF.
Below Table is in 1NF as there is no multi-valued attribute
ID Name Course
------------------
1 A c1
1 A c2
2 E c3
3 M c2
3 M c3