Week 08 Database
Week 08 Database
Management
Unit 2
Week 08
Database
• A database is a collection of data or
information that is organized so that it can be
easily accessed, managed and updated.
A group of related files makes up a database.
The select, join, and project operations enable data from two different tables
to be combined and only selected attributes to be displayed.
What is Normalization?
• Normalization is the process of taking data
from a problem and reducing it to a set of
relations while ensuring data integrity and
eliminating data redundancy.
• Data integrity - all of the data in the database
are consistent, and satisfy all integrity
constraints.
Normalization
• The process of creating small, stable, flexible
and adaptive data structures from complex
groups of data is called normalization.
Normalization
• Normalization
– Process for evaluating and correcting table
structures to minimize data redundancies
– Works through a series of stages called normal
forms:
• First normal form (1NF)
• Second normal form (2NF)
• Third normal form (3NF)
21
1NF (First Normal Form) Rules
• Each table cell should contain a single value.
• Each record needs to be unique.
Example
Example
1 Janet Jones First Street Plot No4 Pirates of the Caribbean Ms. Action
1 Janet Jones First Street Plot No4 Clash of the Tians Ms. Action
Source: https://www.sqa.org.uk/e-learning/MDBS01CD/page_26.htm