You are on page 1of 4

Clark C.

Belen Information Management 1


2BSCS-1 Assignment 4 - Lecture

Normalization

First Normal Form (1NF)

We name our table PURCHASE_ORDER. Set its primary key. This is now in first
normal form.

PURCHASE_ORDER 1NF

PURCHASE_ORDER: poNumber --> poDate, supplierCode, supplierName, address


supplierCode, productCode --> prodDesc, unit, unitPrice, quantity

Relation notation is

PURCHASE_ORDER (poNumber, supplierCode, productCode, poDate, supplierName, address,


prodDesc, unit, unitPrice, quantity)
Second Normal Form (2NF)

Let us group those partial dependencies into a separate relation. Another group for
the attribute that is dependent fully on both key attributes.

PURCHASE_ORDER 1NF

PURCHASE_ORDER: poNumber --> poDate, supplierCode, supplierName, address *partial dependents*


supplierCode, productCode --> prodDesc, unit, unitPrice, quantity

Relation notation is

PO_INFO (poNumber, poDate, supplierCode, supplierName, address)


PRODUCT (supplierCode, productCode, prodDesc, unit, unitPrice, quantity)

PO_INFO 2NF

PRODUCT 2NF
Third Normal Form (3NF)

PO_INFO 2NF

PO_INFO: poNumber --> poDate, supplierCode, supplierName, address transitive dependents


supplierCode --> supplierName, address

Relation notation is

PO_BASICINFO (poNumber, poDate, supplierCode)


SUPPLIER (supplierCode, supplierName, address)

PO_BASICINFO 3NF

SUPPLIER 3NF
Combine all normalized tables

PRODUCT 2NF

PO_BASICINFO 3NF

SUPPLIER 3NF

ERD

You might also like