2ND TM 2023-2024 Normal Forms
2ND TM 2023-2024 Normal Forms
Introduction to
Normal Forms
Definition:
• Definition:
• In 1NF, each column in a table must contain
atomic (indivisible) values.
• No repeating groups or arrays are allowed.
• Every cell should have a single value.
Examples of Tables in
1NF:
Table: Students
• Definition:
• A table is in 2NF if it is in 1NF and all non-
key attributes are fully functionally
dependent on the primary key.
Examples of Tables in
2NF:
Table: StudentsCourses
Course Instructor
Math Dr. Smith
English Prof. Jones
Science Dr. Johnson
4. Third Normal Form (3NF)
• Definition:
• A table is in 3NF if it is in 2NF and there is no
transitive dependency, i.e., no non-prime attribute
depends on another non-prime attribute.
Examples of Tables in
3NF:
Table: Employees
Department ManagerID
HR 101
Finance 102
IT 101
5. Problems of Tables in 1NF
• Redundancy: Repetition of data leads to wastage of
storage and may cause inconsistencies.
• Update Anomalies: Difficulties in updating data due to
redundancy.
• Insertion Anomalies: Adding new data may lead to
incomplete entries or errors.
6. Determinant of Normal Forms
• Definition:
• A foreign key is a column or a set of columns in a table
that refers to the primary key of another table.
• Purpose:
• Establishes relationships between tables, ensuring
referential integrity.
ACTIVITY
1. What is the primary goal of
First Normal Form (1NF)?
• a. Eliminate data redundancy
b. Establish relationships between tables
c. Ensure transitive dependencies
d. Optimize database performance
Answer: a. Eliminate data redundancy
2. In which normal form should a table
be to eliminate transitive dependencies?
a. Data redundancy
b. Transitive dependencies
c. Incomplete entries
d. Data inconsistency
Answer: a. Data redundancy
5. How can the problems of tables in
First Normal Form (1NF) be addressed?