Presentation DBMS
Presentation DBMS
Naveed Malik
November 2024
Normalization in DBMS
Normalization in Database Management Systems (DBMS) is the process
of organizing data to reduce redundancy and improve data integrity. It involves
dividing a database into tables and defining relationships to ensure that data is
logically stored and efficiently retrievable.
Normalization is done in stages called normal forms (NFs). Below are the
first three normal forms, along with their definitions, examples, and concepts of
dependencies.
1
2. Second Normal Form (2NF)
Definition: A table is in 2NF if:
• It is in 1NF.
• All non-key attributes are fully functionally dependent on the entire pri-
mary key (i.e., no partial dependency).
Partial Dependency: A partial dependency occurs when a non-key
attribute depends on only part of a composite primary key.
Example: Table in 1NF:
StudentID Course Instructor Department
1 M ath P rof.X Science
1 P hysics P rof.Y Science
2 Chemistry P rof.Z Science
Here, Department depends only on Course, not the full composite key
(StudentID, Course).
Normalized Tables in 2NF:
StudentID Course Instructor
1 M ath P rof.X
1 P hysics P rof.Y
2 Chemistry P rof.Z
Course Department
M ath Science
P hysics Science
Chemistry Science
2
Here, InstructorContact depends on Instructor, not directly on the pri-
mary key (StudentID, Course).
Normalized Tables in 3NF:
StudentID Course Instructor
1 M ath P rof.X
1 P hysics P rof.Y
2 Chemistry P rof.Z
Instructor InstructorContact
P rof.X 12345
P rof.Y 67890
P rof.Z 11223