Sunteți pe pagina 1din 2

NORMALIZATION EXERCISE

QUESTION 1
Customer
CustID CustName CustLoc Zip ProductID Product Quantity ProductLoc
A101 Azimah Jitra 0600 S001 Sugar 10 Perlis
A101 Azimah Jitra 0600 S002 Oil 20 Pahang
A101 Azimah Jitra 0600 S004 Salt 5 Johor
P201 Zalina Balik 1505 S001 Sugar 3 Perlis
Pulau
P201 Zalina Balik 1505 S004 Salt 4 Johor
Pulau
Table 1

a. What is the state of normalization of the table ? Please give your reasons. (2m)
b. What is the primary key of the above table ? (2m)
c. Draw the dependency diagram (4 m)
d. Normalize the table into 3NF . Show how you would arrive to your answer.(12 m)

QUESTION 2

Table 2

1. Draw the dependency diagram (8 marks)

2. Normalize the table into 1NF,2NF and 3NF ( 12 marks)

QUESTION 3
Here we see one PetId can have Many VisitDates and each VisitDate can have Many Procedures,

DETAILED HEALTH HISTORY REPORT

PET ID PET NAME PET TYPE PET AGE OWNID OWNER VISIT DATE PNO PROCEDURE
246 ROVER DOG 12 01 SAM COOK JAN 13/2013 01 - RABIES VACCINATION
10 - EXAMINE and TREAT WOUND
APR 21/2013 05 - HEART WORM TEST

298 SPOT DOG 2 02 TERRY KIM JAN 21/2013 08 - TETANUS VACCINATION


MAR 10/2013 05 - HEART WORM TEST
09 – BLOOD TEST
10 - EXAMINE and TREAT WOUND

341 MORRIS CAT 4 01 SAM COOK JAN 23/2012 01 - RABIES VACCINATION


JAN 13/2013 01 - RABIES VACCINATION

519 TWEEDY BIRD 2 02 TERRY KIM APR 21/2013 20 - ANNUAL CHECK UP


APR 30/2013 12 - EYE WASH

Table 3

1. What is the state of normalization of the table ? Please give your reasons. (2m)
2. What is the primary key of the above table ? (2m)
3. Normalize the table into 1NF,2NF and 3NF ( 16 marks)