Docsity

Information and Communications Technology, Lecture notes of Information and Communications Technology (ICT)

Toggle sidebar
bg1
Unit 4: Normalization
Well Structured Relations
- it should have minimum redundancy
- as such should allow a user to modify,
insert, or delete a row without creating
inconsistencies or errors
- increase database integrity
- ensures there is no duplication or
omission of data when creating a
database
Anomalies
- errors or inconsistencies that may result
when a user attempts to update a
relation that contains redundant data are
referred to as anomalies
Types of Anomalies:
1. Insert / Insertion Anomaly
2. Delete / Deletion Anomaly
3. Update / Modification Anomaly
Insert or Insertion Anomaly
- the inability to add data to the database
due to the absence of other data
Delete / Deletion Anomaly
- the unintended loss of data due to the
deletion of other data
Update / Modification Anomaly
- a data inconsistency that results from
data redundancy and partial update
Normalization
- done to make sure that the resultant
tables to be used in an information
system are well-structured
- a process of evaluating and correcting
relation structures to minimize data
redundancies, thereby reducing the
likelihood of data anomalies
Main Goals of Normalization:
1. Minimize data redundancy, avoiding
anomalies, and conserving storage
space.
2. Simplify the enforcement of referential
integrity constraints.
3. Make it easier to maintain the data
(insert, update, and delete).
4. Provide a better design that is to
improved representation of the real
world and a stronger basis for future
growth.
- works through a series of steps called
normal forms, is used to eliminate or
reduce redundancy in database tables
Normal Form
- a state of relations that requires certain
rules regarding relationships between
columns (functional dependencies) are
satisfied
The 1st 3 Stages
- perform by most relational database
designers are described as:
1. first normal form (1NF)
2. second normal form (2NF)
3. third normal form (3NF)
properly designed 3NF structures also
meet the requirements of Boyce/Codd
normal form (BCNF) and fourth normal
form (4NF)
it should not be assumed that the
highest level of normalization = the most
desirable
the higher the normal form, the more
relational joins required to produce a
specified output and the more resources
required by the database system to
respond to end-user queries
Denormalization
- a process of producing a lower normal
form
- that is a 3NF will be converted to a 2NF
through denormalization
First Normal Form
1NF Rule
- removes all multi-valued columns
Multi-valued columns/repeating groups
- refer to a group of columns in a record
that occurs several times in each record
- a column of a table cannot hold multiple
values (it should hold only a single
value)
pf2

Partial preview of the text

Download Information and Communications Technology and more Lecture notes Information and Communications Technology (ICT) in PDF only on Docsity!

Unit 4: Normalization Well Structured Relations

  • it should have minimum redundancy
  • as such should allow a user to modify, insert, or delete a row without creating inconsistencies or errors
  • increase database integrity
  • ensures there is no duplication or omission of data when creating a database Anomalies
  • errors or inconsistencies that may result when a user attempts to update a relation that contains redundant data are referred to as anomalies Types of Anomalies:
  1. Insert / Insertion Anomaly
  2. Delete / Deletion Anomaly
  3. Update / Modification Anomaly Insert or Insertion Anomaly
  • the inability to add data to the database due to the absence of other data Delete / Deletion Anomaly
  • the unintended loss of data due to the deletion of other data Update / Modification Anomaly
  • a data inconsistency that results from data redundancy and partial update Normalization
  • done to make sure that the resultant tables to be used in an information system are well-structured
  • a process of evaluating and correcting relation structures to minimize data redundancies, thereby reducing the likelihood of data anomalies Main Goals of Normalization:
  1. Minimize data redundancy, avoiding anomalies, and conserving storage space.
  2. Simplify the enforcement of referential integrity constraints.
  3. Make it easier to maintain the data (insert, update, and delete).
  4. Provide a better design that is to improved representation of the real world and a stronger basis for future growth.
  • works through a series of steps called normal forms, is used to eliminate or reduce redundancy in database tables Normal Form
  • a state of relations that requires certain rules regarding relationships between columns (functional dependencies) are satisfied The 1st 3 Stages
  • perform by most relational database designers are described as:
  1. first normal form (1NF)
  2. second normal form (2NF)
  3. third normal form (3NF)  properly designed 3NF structures also meet the requirements of Boyce/Codd normal form (BCNF) and fourth normal form (4NF)  it should not be assumed that the highest level of normalization = the most desirable  the higher the normal form, the more relational joins required to produce a specified output and the more resources required by the database system to respond to end-user queries Denormalization
  • a process of producing a lower normal form
  • that is a 3NF will be converted to a 2NF through denormalization First Normal Form 1NF Rule
  • removes all multi-valued columns Multi-valued columns/repeating groups
  • refer to a group of columns in a record that occurs several times in each record
  • a column of a table cannot hold multiple values (it should hold only a single value)

Second Normal Form 2NF Rule

  • removes all partial functional dependencies Functional Dependencies
  • refer to the relationship between the columns in a table
  • a relation that is in 1NF and every non- primary key column is fully dependent on the whole set of a primary key  Analyzing the result of 1NF, we will notice the SubjectDescription depends on the primary key SubjectCode (which is only part of the composite primary) in the Grade table. Thus, partial functional dependency exists. To remove the partial functional dependency, Third Normal Form 3NF Rule
  • removes all transitive dependencies Transitive Dependencies
  • the dependencies between non-key columns
  • if a transitive dependency exists, we remove the transitively dependent column from the relation by putting the column in a new relation