You are on page 1of 2

CI2611 Data Server Technology Course work Account Example

Scenario Customers open accounts and choose a given product type. Customers can have more than one account supposing they choose different products. No customer can have more than one account of the same product type. Un-normalised Relation Product (ProductNo, ProductDescription, * CustomerNo, CustomerName, Balance) Step 1 (1NF) Step 2 (2NF & 3NF)

Product

Account

Customer

Eliminate the redundant data for 2NF. Customer information is redundantly repeated in each account. Remove the customer information to a separate relation. This solves the update problem if you decide to change the Customer No for a given customer. Also the delete problem which causes the customer to disappear if she closes her accounts! Product (ProductNo, ProductDescription)

Product

Customer (CustomerNo, CustomerName)

Account

Account (ProductNo, CustomerNo, Balance) We dont have attributes not depending upon the key, in this case, so putting this in 2NF has also given us 3NF.
*

Account is a repeating group and needs to be removed to put the relation into 1NF. Product (ProductNo, ProductDescription) Account (ProductNo, CustomerNo, CustomerName, Balance)

Representing a relation with the name of the relation followed by the attributes in brackets is a common convention. Normally, the primary key is underlined. ( See Connolly & Begg, 5th ed, p.101 ).

You might also like