You are on page 1of 2

ISOM3260 In-class Exercise

Normalization: In-Class Exercise 2

Q3. Consider the following table, Pet Health History.


Pet Health History
Pet_ID Pet_Name Pet_Type Pet_Year Owner Visit_Date Procedure_ID Procedure_Name Results
101 Rover Dog 2003 Sam Tong 13-Jan-2021 1 Rabies Vaccination Good
101 Rover Dog 2003 Sam Tong 27-Mar-2021 10 Examine Wound Fair
101 Rover Dog 2003 Sam Tong 02-Apr-2021 5 Heart Worm Test Good
333 Spot Dog 2010 Terry Choi 21-Jan-2021 8 Tetnaus Vaccination Good
333 Spot Dog 2010 Terry Choi 10-Mar-2021 5 Heart Worm Test Fair
430 Morris Cat 2011 Sam Tong 23-Jan-2020 1 Rabies Vaccination Failed
430 Morris Cat 2011 Sam Tong 13-Jan-2021 1 Rabies Vaccination Good
555 Sweet Bird 2010 Sue Cook 30-Apr-2021 20 Annual Check Up Good
555 Sweet Bird 2010 Sue Cook 30-Apr-2021 12 Eye Wash Fair
... ... ... ... ... ... ... ... ...

a. Draw the functional dependencies for the table.

b. Convert the table into 2NF and draw the functional dependencies.

c. Convert the table into 3NF and draw the functional dependencies.

(Note. It is not necessary to include the referential integrity.)

Page 1 of 2
ISOM3260 In-class Exercise

Q4. Consider the following table, FORTUNE_TELLING_RECORD


FORTUNE_TELLING_RECORD
Customer C_Name Phone Fortune Description Date Fortune F_Name Comment
_ID _Stick _Teller_ID
_No
A001 Jacky 9431-1400 1 A happy dog 12-OCT- M3260 Brendon A blessed year
Cheng greets with you. 2021 Lee ahead!

A001 Jacky 9431-1400 3 A farmer feels 12-OCT- M3210 Jason Ma You may have
Cheng satisfactory with 2021 better career
his yield. development.
A001 Jacky 9431-1400 3 A farmer feels 12-OCT- M3400 Chris Tse It’s time to change
Cheng satisfactory with 2021 your job.
his yield.
A002 Peter 9431-1409 1 A happy dog 12-OCT- M5260 Sam Tang A blessed year
Cheng greets with you. 2021 ahead!

A003 Mary Li 9555-1100 7 Two persons walk 12-OCT- M5260 Sam Tang You may meet
together. 2021 your lover soon!

A004 Sue Ho 9555-2100 25 You meet the 14-OCT- M3320 Lily So You may win a
goddess of 2021 lottery this year!
wealth.
A005 Jacky (null) 25 You meet the 12-OCT- M3320 Lily So You may win a
Cheng goddess of 2021 lottery this year!
wealth.
A005 Jacky (null) 25 You meet the 14-OCT- M3320 Lily So You may win a
Cheng goddess of 2021 lottery next month!
wealth.
A006 Anna 9569-7288 9 A kid smiles at 11-SEP- M5290 Tom Fung A new member
Chan you. 2021 may join your
family.
A006 Anna 9569-7288 13 A person is 18-SEP- M5020 May Li You may be
Chan climbing up stair 2021 promoted soon!
cases.
A007 Sherry 9666-4407 1 A happy dog 14-OCT- M3000 Samuel You will have a
Chan greets with you. 2021 Lai blessed future in
the coming 5
years.
A007 Sherry 9666-4407 7 Two persons walk 14-OCT- M3000 Samuel Joy around your
Chan together. 2021 Lai family!

a. Draw the functional dependencies for the table.

b. Convert the table into 2NF and draw the functional dependencies.

c. Convert the table into 3NF and draw the functional dependencies.

(Note. It is not necessary to include the referential integrity.)

Page 2 of 2

You might also like