You are on page 1of 2

1. Convert this table to a relation (named PART SUPPLIER) in first normal form.

Illustrate
the relation with the sample data in the table.

PART SUPPLIER

Part No Description Vendor name Address Unit cost


1234 Logic chip Fast Chips Cupertino 10.00
1234 Logic chip Smart Chips Phoenix 8.00
5678 Memory chip Fast Chips Cupertino 3.00
5678 Memory chip Quality Chips Austin 2.00
5678 Memory chip Smart Chips Phoenix 5.00

2. List the functional dependencies in PART SUPPLIER and identify a candidate key
 Transitive Dependencies
Part No, Vendor Name Unit Cost

 Partial Dependencies
Part No Description
Vendor Name Address

 Part No and Vendor Name can be the candidate keys for the PART
SUPPLIER
3. For the relation PART SUPPLIER, identify each of the following: an insert anomaly,
a delete anomaly, and a modification anomaly
 Insert anomaly- If a part number is not included, cannot add a new vendor.
 Delete anomaly- If we delete part information the vendor information also will be
deleted.
 Modification anomaly- we will update the records for a vendor if they change their
address.

4. Draw a relational schema for PART SUPPLIER and show the functional dependencies.

Transitive Dependencies

Part No Descriptio Vendor Name Address Unit Cost


n

Partial Dependencies

5. In what normal form is this relation?


 1st normal form.

6. Develop a set of 3NF relations from PART SUPPLIER.

1. Part Table
PART (Part No (PK), Description)
2. Vendor Table
VENDOR (Vendor Name (PK), Address)
3. Part Vendor Table
Part Vendor (Part No (FK), Vendor Name (FK), Unit Cost)

PART
Part No Description
1234 Logic chip
5678 Memory chip

 VENDOR

Vendor name Address


Fast Chips Cupertino
Smart Chips Phoenix
Quality Chips Austin

PART VENDOR

Part No Vendor name Unit cost


1234 Fast Chips 10.00
1234 Smart Chips 8.00
5678 Fast Chips 3.00
5678 Quality Chips 2.00
5678 Smart Chips 5.00

You might also like