Database Design and Normalization Part 18
Database Design and Normalization Part 18
Normalization
Understanding Structured Data
Organization
Introduction to Database Design
• - Database design defines the structure and
organization of data.
• - It ensures data is stored efficiently, minimizes
redundancy, and maintains integrity.
What is Normalization?
• - A process of organizing data in a database.
• - Reduces redundancy and improves data
integrity.
• - Enhances database efficiency.
First Normal Form (1NF)
• - Data must be atomic (indivisible values).
• - Each column must contain unique values.
• - Example:
• - Before: A single column contains 'Math,
Science'.
• - After: Split into two separate rows.
Second Normal Form (2NF)
• - Must first meet 1NF.
• - Non-key attributes must depend on the
whole primary key.
• - Example:
• - A student-course table should separate
instructor details into another table.
Third Normal Form (3NF)
• - Must first meet 2NF.
• - No transitive dependencies (a non-key
attribute should not depend on another non-
key attribute).
• - Example:
• - Moving 'Department Location' from a
Student table to a separate Department table.
Benefits of Normalization
• - Reduces Data Redundancy.
• - Improves Data Integrity.
• - Enhances Query Performance.
• - Simplifies Database Maintenance.
Higher Normal Forms
• - **BCNF**: Ensures every determinant is a
candidate key.
• - **4NF**: Eliminates multi-valued
dependencies.
• - **5NF**: Ensures no unnecessary joins are
required.