Guide IV
16.6 (a) Create a conceptual schema for Perfect Pets using the concepts of the Enhanced Entity
Relationship (EER) model. To simplify the diagram, only show entities, relationships and the
primary key attributes. Specify the cardinality ratio and participation constraint of each
relationship type. State any assumptions you make when creating the EER model (if
necessary).
(b) Validate the conceptual data model.
(c) Map your high-level data model to a set of relational tables that represent the entity
and relationship types. Identify primary, alternate, and foreign keys.
Clinic (clinicNo, street, city, state, zipCode, telNo,
faxNo, mgrStaffNo)
Primary Key clinicNo
Foreign Key mgrStaffNo references Staff(staffNo)
Staff (staffNo, sFName, sLName, sStreet, sCity,
sState, sZipCode, sTelNo, DOB, sex, SSN,
position, salary, clinicNo)
PetOwner (ownerNo, oFName, oLName, oStreet,
oCity, oState, oZipCode, oTelNo, clinicNo)
Pet (petNo, petName, petType, petDescription
dateRegistered, petStatus, ownerNo, clinicNo)
Primary Key penNo
Foreign Key clinicNo references Clinic(clinicNo)
Primary Key penNo, petNo, dateIn
Alternate Key penNo, petNo, dateOut
Foreign Key penNo references Pen(penNo)
petNo
Pet(petNo)
PetTreatment (examNo, treatNo, startDate, endDate,
Item (itemNo, itemName, itemDescription, itemCost)