0% found this document useful (0 votes)
162 views5 pages

Template - Midterm Assessment - It-Im 01 (Advanced Database)

The document provides a multi-table database that is not normalized. It asks the student to normalize the database into 1NF, 2NF, and 3NF. The student provides the following: 1) Puts the database into 1NF by removing multivalued attributes and repeating groups into separate rows. 2) Puts the 1NF database into 2NF by removing partial dependencies and creating three tables. 3) Puts the 2NF database into 3NF by removing transitive dependencies and creating four tables. 4) Names the four 3NF tables with meaningful names, identifies the primary keys with underlining and foreign keys with asterisks.

Uploaded by

Don Tiburcio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
162 views5 pages

Template - Midterm Assessment - It-Im 01 (Advanced Database)

The document provides a multi-table database that is not normalized. It asks the student to normalize the database into 1NF, 2NF, and 3NF. The student provides the following: 1) Puts the database into 1NF by removing multivalued attributes and repeating groups into separate rows. 2) Puts the 1NF database into 2NF by removing partial dependencies and creating three tables. 3) Puts the 2NF database into 3NF by removing transitive dependencies and creating four tables. 4) Names the four 3NF tables with meaningful names, identifies the primary keys with underlining and foreign keys with asterisks.

Uploaded by

Don Tiburcio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Republic of the Philippines

NUEVA ECIJA UNIVERSITY OF SCIENCE AND


GABALDON CAMPUS, Gabaldon, Nueva Ecija, Philippines
ISO 9001:2015 CERTIFIED
COLLEGE OF INFORMATION AND COMMUNICATIONS TECHNOLOGY

MIDTERM ASSESSMENT
1st Semester, AY 2020-2021
IT-IM 01 (ADVANCED DATABASE SYSTEMS)

NAME: Diether F. Ocampo YR. & SEC.: BSIT-III DATE:10-24-2020 SCORE: ________

DATABASE NORMALIZATION

For the example below we have one big table. Put the table in normalized form.

OID = Order ID, O_Date= Order Date, CID = Customer ID, C_Name = Customer Name,
C_State = Customer’s State, PID = project id, P_Desc =Project Name, P_Price = Product Price,
Qty = Quantity Purchased

Note: 7, 5, 4 means three Product IDs. Similarly, 1, 1, 5 means three Quantities.

Functional Dependencies are:


OID -> O_Date CID -> C_Name PID -> P_Desc PID -> P_Price
OID -> CID CID -> C_State PID and OID -> Qty

OID O_Date CID C_Name C_State PID P_Desc P_Price Qty


1006 10/24/20 2 CLSU NC 7, 5, 4 Table, Desk, 800, 325, 1, 1, 5
Chair 200
1007 10/25/20 6 WUP GA 11, 4 Computer, 15000, 4, 6
Chair 200

1. Put the above table in 1NF Tables


In this step, remove any multivalued attributes and repeating groups by copying all of the information in
that group to a separate row. Result must have a single Table.

2. Put the above table in 2NF


In the second normal form, we must remove any partial functional dependencies. These are attributes
that depend directly on more than one primary key. Result must have three tables.

3. Put the above table in 3NF Tables


For third normal form, any transitive dependencies must be removed. Result must have four tables.

4. Final set of Tables with meaningful names and PKs and FKs
In this step, you must name the tables that were created and finalized in 3NF. Table names must have a
meaningful name such that some third party looking at your design will know immediately what that table is
used for. Please be sure to underline the primary keys and put an asterisk (*) at the end of a foreign key. Do not
forget the other attributes and do not do anything special to them. Finally, for a concatenated key, be sure to
underline all attributes of the key and put an asterisk after each one.

Transforming Communities through Science and Technology Contact No: 0906-209-4828


Email: [email protected]
www.neust.edu.ph
Republic of the Philippines
NUEVA ECIJA UNIVERSITY OF SCIENCE AND
GABALDON CAMPUS, Gabaldon, Nueva Ecija, Philippines
ISO 9001:2015 CERTIFIED
COLLEGE OF INFORMATION AND COMMUNICATIONS TECHNOLOGY

1. Put the above table in 1NF Tables


In this step, remove any multivalued attributes and repeating groups by copying all of the information in
that group to a separate row. Result must have a single Table.

1st Normal Form.

OID O_Date CID C_Name C_State PID P_Desc P_Price Qty


1006 10/24/20 2 CLSU NC 7 TABLE 800 1
1006 10/24/20 2 CLSU NC 5 DESK 325 1
1006 10/24/20 2 CLSU NC 4 CHAIR 200 5
1007 10/25/20 6 WUP GA 11 COMPUTE 15000 4
R
1007 10/25/20 6 WUP GA 4 CHAIR 200 6

2. Put the above table in 2NF


In the second normal form, we must remove any partial functional dependencies. These are attributes
that depend directly on more than one primary key. Result must have three tables.

2nd Normal Form.

OID O_Date C_Name P_Desc


1006 10/24/20 CLSU TABLE
1006 10/24/20 CLSU DESK
1006 10/24/20 CLSU CHAIR
1007 10/25/20 WUP COMPUTER
1007 10/25/20 WUP CHAIR

PID P_Desc P_Price Qty


7 TABLE 800 1
5 DESK 325 1
4 CHAIR 200 5
11 COMPUTE 15000 4
R
4 CHAIR 200 6

CID C_Name C_State


2 CLSU NC

Transforming Communities through Science and Technology Contact No: 0906-209-4828


Email: [email protected]
www.neust.edu.ph
Republic of the Philippines
NUEVA ECIJA UNIVERSITY OF SCIENCE AND
GABALDON CAMPUS, Gabaldon, Nueva Ecija, Philippines
ISO 9001:2015 CERTIFIED
COLLEGE OF INFORMATION AND COMMUNICATIONS TECHNOLOGY

2 CLSU NC
2 CLSU NC
6 WUP GA
6 WUP GA

3. Put the above table in 3NF Tables


For third normal form, any transitive dependencies must be removed. Result must have four tables.

OID O_Date C_Name P_Desc


1006 10/24/20 CLSU TABLE
1006 10/24/20 CLSU DESK
1006 10/24/20 CLSU CHAIR
1007 10/25/20 WUP COMPUTER
1007 10/25/20 WUP CHAIR

PID P_Desc P_Price Qty


7 TABLE 800 1
5 DESK 325 1
4 CHAIR 200 5
11 COMPUTE 15000 4
R
4 CHAIR 200 6

CID C_Name C_State


2 CLSU NC
2 CLSU NC
2 CLSU NC
6 WUP GA
6 WUP GA

P_Desc P_Price Qty


TABLE 800 1
DESK 325 1
CHAIR 200 5
COMPUTE 15000 4
R
CHAIR 200 6

Transforming Communities through Science and Technology Contact No: 0906-209-4828


Email: [email protected]
www.neust.edu.ph
Republic of the Philippines
NUEVA ECIJA UNIVERSITY OF SCIENCE AND
GABALDON CAMPUS, Gabaldon, Nueva Ecija, Philippines
ISO 9001:2015 CERTIFIED
COLLEGE OF INFORMATION AND COMMUNICATIONS TECHNOLOGY

4. Final set of Tables with meaningful names and PKs and FKs
In this step, you must name the tables that were created and finalized in 3NF. Table names must have a
meaningful name such that some third party looking at your design will know immediately what that table is
used for. Please be sure to underline the primary keys and put an asterisk (*) at the end of a foreign key. Do not
forget the other attributes and do not do anything special to them. Finally, for a concatenated key, be sure to
underline all attributes of the key and put an asterisk after each one.
ORDER TABLE
OID O_Date *C_Name P_Desc
1006 10/24/20 CLSU TABLE
1006 10/24/20 CLSU DESK
1006 10/24/20 CLSU CHAIR
1007 10/25/20 WUP COMPUTER
1007 10/25/20 WUP CHAIR

PRODUCT TABLE
PID *P_Desc P_Price Qty
7 TABLE 800 1
5 DESK 325 1
4 CHAIR 200 5
11 COMPUTE 15000 4
R
4 CHAIR 200 6

CUSTOMER TABLE
CID *C_Name C_State
2 CLSU NC
2 CLSU NC
2 CLSU NC
6 WUP GA
6 WUP GA

PRICE TABLE
P_Desc *P_Price Qty
TABLE 800 1
DESK 325 1

Transforming Communities through Science and Technology Contact No: 0906-209-4828


Email: [email protected]
www.neust.edu.ph
Republic of the Philippines
NUEVA ECIJA UNIVERSITY OF SCIENCE AND
GABALDON CAMPUS, Gabaldon, Nueva Ecija, Philippines
ISO 9001:2015 CERTIFIED
COLLEGE OF INFORMATION AND COMMUNICATIONS TECHNOLOGY

CHAIR 200 5
COMPUTE 15000 4
R
CHAIR 200 6

Transforming Communities through Science and Technology Contact No: 0906-209-4828


Email: [email protected]
www.neust.edu.ph

You might also like