Term: 1st Term
Week: 7
Class: Senior Secondary School 2
Age: 16 years
Duration: 40 minutes of 2 periods each
Date:
Subject: Data Processing
Topic:- Normal Form II
SPECIFIC OBJECTIVES: At the end of the lesson, pupils should be able to
INSTRUCTIONAL TECHNIQUES: Identification, explanation, questions and answers, demonstration, videos from source
INSTRUCTIONAL MATERIALS: Videos, loud speaker, pictures, Data Processing for senior Secondary Education by Hiit Plc, WAPB Computer Studies for Senior Secondary I by Adekunle et al, On-line Materials.
INSTRUCTIONAL PROCEDURES
PERIOD 1-2
PRESENTATION |
TEACHER’S ACTIVITY |
STUDENT’S ACTIVITY |
STEP 1 INTRODUCTION |
The teacher reviews the previous lesson on Normalization |
Students pay attention |
STEP 2 EXPLANATION |
He explains the meaning of normal forms and list all the types of normal forms
|
Students pay attention and participates |
STEP 3 DEMONSTRATION |
He explains the first normal forms; how to create and covert tables into first normal form and the problems associated with it |
Students pay attention and participate |
STEP 4 NOTE TAKING |
The teacher writes a summarized note on the board |
The students copy the note in their books |
NOTE
Normal form
Normal form is the way of measuring the level, or depth, to which a
database has been normalized. The most common normal forms are:
Other normal forms are Boyce /Codd normal form (BCNF), 4th normal form
and 5th normal form.
Note: Each subsequent normal form depends on the normalization steps
taken in the previous normal form. The 3NF is sufficient for most typical
database applications.
First normal form (1NF)
A database table is said to be in 1NF if:
For example, consider the un-normalized table below:
Item |
Colour |
Price |
Tax |
T-shirt |
Red, Blue |
12.00 |
0.60 |
Polo |
Red, Yellow |
12.00 |
0.60 |
T-shirt |
Red, Blue |
12.00 |
0.60 |
Sweatshirt |
Blue, Black |
25.00 |
1.25 |
Pant |
White |
6.00 |
0.30 |
Table1: Un-normalized table
The table above is not in a first normal form because:
So, how do you convert the table above into 1NF?
The resulting table now in 1NF is shown below.
Table 2: 1NF table
Problems with tables in first normal form (1NF)
Insert anomalies: An Insert Anomaly occurs when certain attributes cannot be inserted into the database without the presence of other attributes. Suppose a new item has just been bought and is to be added into the table and you do not know the tax applicable, it will be difficult to enter a few item of information and not all, thereby leading to Insertion Anomaly.
Delete anomalies: A Delete Anomaly exists when certain attributes are lost because of the deletion of other attributes. If the White colour of the item Pant is no more in stock, and we try to delete ‘white’ from the colour column, then we will be forced to remove the item Pant, the price and the tax as well since the entire row will be deleted
Update anomalies: An Update Anomaly exists when one or more instances of duplicated data are updated, but not all. For example, if the tax applicable to the price 12.0 changed, then we will have to update all the rows where there is 0.60, else data will become inconsistent i.e. there will be different tax value for the price 12.0 in different rows.
EVALUATION: 1. Define normal form
CLASSWORK: As in evaluation
CONCLUSION: The teacher commends the students positively