You are on page 1of 2

Objective and Purpose: Your task in this exercise is to move the un-normalized table to 3NF.

malized table to 3NF. To do this, use the dependency diagram


to identify partial dependencies and transitive dependencies.

Patient Allocation Form


Important Assumptions
Assume that the Dept. # and Cust. # are all needed to uniquely identify the date and nature of the complaint about the department.

Step 1: Identify Dependencies


Draw lines showing the dependencies between each attribute

Unnormalized Table
Date of
Dept # Dept Name Location Mgr Name Mgr ID No. Tel Extn. Cust # Cust Name Complaint Nature of Complaint
11232 Soap Division Cincinnati Mary Samuel S11 7711 P10451 Robert Drumtree 1/12/1998 Poor Service
P10480 Steven Parks 1/14/1998 Discourteous Attendant

Step 2:Convert UNF to 1NF


When moving from an Unnormalized table to 1NF, take out repeating groups. One approach is to fill in empty cells. A second is to split out the repeating elements into a new table.
In this case, I removed the fields that were repeating.
1NF Table(s)

Date of Nature of
Dept # Cust # Cust Name Complaint Complaint

Dept # Dept Name Location Mgr Name Mgr ID No. Tel Extn.

Step 3:Convert 1NF to 2NF


To move a table from 1NF to 2NF, remove partial dependencies.
In this case, the Customer Name depends only on Cust#, which is a partial dependency. Therefore remove the Customer Name and make a copy of Cust #
2NF Tables

Date of Nature of
Dept # Cust # Complaint Complaint

Dept # Dept Name Location Mgr Name Mgr ID No. Tel Extn.

Cust # Cust Name

Step 4:Convert 2NF to 3NF


To move a table from 2NF to 3NF, remove transitive dependencies
In this case, the Mgr Name is dependent on the Mgr ID No., which is a transitive dependency. Therefore, remove the Mgr Name and make a copy of the the Mgr ID No.
3NF Table

Date of Nature of
Dept # Cust # Complaint Complaint

Dept # Dept Name Location Mgr ID No. Tel Extn.

Cust # Cust Name

Mgr ID No. Mgr Name


Objective and Purpose: Your task in this exercise is to move the un-normalized table to 3NF. To do this, use the dependency diagram
to identify partial dependencies and transitive dependencies.

Department Complaints
Important Assumptions
Assume that the Dept. # and Cust. # are all needed to uniquely identify the date and nature of the complaint about the department.

Step 1: Identify Dependencies


Draw lines showing the dependencies between each attribute

Unnormalized Table
Date of
Dept # Dept Name Location Mgr Name Mgr ID No. Tel Extn. Cust # Cust Name Complaint Nature of Complaint
11232 Soap Division Cincinnati Mary Samuel S11 7711 P10451 Robert Drumtree 1/12/1998 Poor Service
P10480 Steven Parks 1/14/1998 Discourteous Attendant

Step 2:Convert UNF to 1NF


When moving from an Unnormalized table to 1NF, take out repeating groups. One approach is to fill in empty cells. A second is to split out the repeating elements into a new table.
In this case, I removed the fields that were repeating.
1NF Table(s)

Date of Nature of Dept


Dept # Cust # Cust Name Complaint Complaint Name Location Mgr Name Mgr ID No. Tel Extn.

Step 3:Convert 1NF to 2NF


To move a table from 1NF to 2NF, remove partial dependencies.
In this case, the Customer Name depends only on Cust#, which is a partial dependency. Therefore remove the Customer Name and make a copy of Cust #
2NF Tables

Date of Nature of
Dept # Cust # Complaint Complaint

Dept # Dept Name Location Mgr Name Mgr ID No. Tel Extn.

Cust # Cust Name

Step 4:Convert 2NF to 3NF


To move a table from 2NF to 3NF, remove transitive dependencies
In this case, the Mgr Name is dependent on the Mgr ID No., which is a transitive dependency. Therefore, remove the Mgr Name and make a copy of the the Mgr ID No.
3NF Table

Date of Nature of
Dept # Cust # Complaint Complaint

Dept # Dept Name Location Mgr ID No. Tel Extn.

Cust # Cust Name

Mgr ID No. Mgr Name

You might also like