Figure 1: Erd For Pet Care Center: Staff

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

QUESTION 1

PET CARE CENTER is a shelter for pet while the owner is away. If the owner wants to leave
his/her pet, he/she must register his/her pet at the PET CARE CENTER. Each owner can
register one or more pet and each pet must be owned by one owner. Each pet is identified using
PetID. Staff of PET CARE CENTER will manage one or more pet and each pet will be managed
by one or more staff. Figure 1 is an entity relationship diagram (ERD) for PET CARE CENTER.
Identify all errors AND make correction for it.

Staff

StaffName
StaffID {PK}
StaffAddress
StreetNo
Postcode
City
Country
StaffTelNo [1..2]
Salary
0..0
CheckInDate

CheckOutDate {PK} manage


OwnerID {PK}
OwnerName {PK}
FirstName Pet
LastName
OwnerAddress 1..0 register  *..* PetID
StreetNo PetName
Postcode PetType
City PetDOB
Country
OwnerTelNo [1..2]

Figure 1: ERD for PET CARE CENTER


QUESTION 2
a) Identify ALL errors and correction on the entity relationship diagram (ERD) given in Figure
2.

Provide your answers in Appendix 1 by:


i. Circle the errors identified on the diagram.
ii. For each error identified, correct them. Show your corrections either by redrawing the corrected
diagram OR by describing how the errors should be corrected next to the circles that you have
identified.

Figure 2: Conceptual ERD


(a) Figure 1 is an entity relationship diagram (ERD) for conceptual level. Identify ALL
errors on the ERD given in Figure 1. Provide your answers in Appendix 1 by:
i. Circle the errors identified on the diagram.
ii. For each error identified, correct them. Show your corrections either by
redrawing the corrected diagram and describing how the errors should be
corrected next to the circles that you have identified.
(10 marks)

Figure 1: Conceptual Entity Relationship Diagram


You have been hired to design a database to be used by the maintenance unit of an airport. The
database stores required information for all airplanes stationed and maintained at the airport.
The relevant information is as follows:
 Every airplane has a registration number, and each airplane is of a specific model. The
airport accommodates a number of airplane models, and each model is identified by a
model number (e.g., DC-10) and has a capacity and a weight.
 A number of technicians work at the airport. You need to store the name, the staff
identification number, address, phone number, and salary of each technician.
 Each technician is an expert on one or more plane model(s), and his or her expertise
may overlap with that of other technicians. This information about technicians must also
be recorded.
 Technicians periodically perform tests to ensure that airplanes are still airworthy. Each
test has a Federal Aviation Administration (FAA) test number, a name, and a
maximum possible score.
 The FAA requires the airport to keep track of each time a given airplane is tested by a
given technician using a given test. For each testing event, the information needed is
the date, the number of hours the technician spent doing the test, and the score the
airplane received on the test.

i. Based on the above case study, answer all the following questions.
i. Identify all of entities and attributes involved. Write the answer in the format
given.
(8 Marks)

ENTITI ATTRIBUTE

ii.Based on the answer in (i), produce the conceptual entity relationship diagram (ER model

You might also like