FDS Chapter 5 Database Design and Normalization Part 2 STUDENT
FDS Chapter 5 Database Design and Normalization Part 2 STUDENT
Normalization -
continued
CHAPTER 5
Informal Design Guidelines for Relation
Schemas
Functional Dependencies
Normal Forms Based on Primary Keys
General Definitions of Second and Third
Topics Normal Forms
Boyce-Codd Normal Form
StudentID →→ CourseID
3. Relationship: A relationship is a
connection between two or more
tables, typically created using
foreign keys. There are different
types of relationships, including
one-to-one, one-to-many, and
many-to-many.
■ Perform a conceptual schema
Approaches design using a conceptual model
to practical such as ER or EER and map the
relational conceptual design into a set of
design relations.
projects ■ Design the relations based on
external knowledge derived from
an existing implementation of
files or forms or reports.
• first proposed by Codd (1972)
• takes a relation schema through a
series of tests to certify whether it
satisfies a certain normal form.
Normalizatio • a top-down process which
n process evaluates each relation against the
criteria for normal forms and
decomposes relations as necessary
(relational design by analysis)
involves splitting large tables into smaller ones and
defining relationships between them
As you can see, there is redundancy in the table. For example, the information about
the Program Adviser and their office is repeated for each student in the program.
This duplication of data can lead to problems such as data inconsistency and update
anomalies.
To remove this redundancy, we can break the table into two separate
tables: one for student information and another for program
information. We can then link the two tables using a foreign key. Here's
an example of the normalized tables:
Redundancy
Redundancy
Student Table
Now, the program information is stored in a separate table and is linked to the student
table using the Program ID. This eliminates the redundancy and ensures data
consistency.
Normal Form. Refers to a set of
rules that a database table must
follow in order to eliminate
redundancy and maintain data
integrity. The main goal of
Normal normalization is to minimize data
Forms redundancy and avoid data
anomalies (inconsistencies) that can
occur when data is updated or
deleted.
1NF (First Normal Form): A table is in first normal form if
it has no repeating groups or arrays, and all data is atomic
(indivisible).
used step if it is in 2NF and all non-key attributes are dependent only
on the primary key and not on any other non-key attributes.