Lab 2
Lab 2
Lab 2
Normal Form
Below data is used to describe information of treatment for pets at a pet medical center. Using decomposition
technique to model these data into relational model basing normal forms. You should start from 1NF to 3NF.
2. Invoice
PET ID PET NAME PET TYPE PET AGE OWNERVISIT DATE PROCEDURE
INVOICE # 987
Z5Z 6G6
TOTAL 54.00
1NF:
2NF
PET I PET NAM PET TYP PET AG OWNER PROCEDURE_ID PROCEDURE_ Description
D E E E 01 RABIES VACCINATION
246 ROVER BIRD 12 SAM COOK 05 HEART WORM TEST
1
298 SPOT CAT 2 TERRY KIM 08 TETANUS VACCINATION
341 MORRIS CAT 4 SAM COOK 10 EXAMINE and TREAT WOUND
519 PET ID PROCEDURE_ID VISIT DATE EYE WASH
TWEEDY BIRD 2 TERRY KIM 12
246 01 JAN 13/2002 ANNUAL CHECK UP
246 10 MAR 27/2002 1
20
8
246 05 APR 02/2002
298 08 JAN 21/2002
298 05 MAR 10/2002
341 01 JAN 23/2001
341 01 JAN 13/2002
519 20 APR 30/2002
519 12 APR 30/2002
Câu 2:
INVOICE_ID INVOICE_ OWNER OWNER Pet_id Pet_name Procedure Amount
DATE _ADDRESS
987 Jan Mr.Richard 123 This Street, 01 Rover Rabies 30.00
13/2002 Cook My City, Ontario Vaccination
1NF
2NF
3NF:
1
1
8
1
PET (key: Pet_id)
Pet_id Pet_name
01 Rover
02 Morris