Chap5 Databases - Complete Before Attempting The Questions
Chap5 Databases - Complete Before Attempting The Questions
FIGURES
Figure 1
Work through each of the three examples in order to answer the quiz questions. Ensure that you keep
your rough work next to you to answer the questions related to the different databases.
Enterprise rules
Rule 1: An airport will be controlled by an Airports Company and information such as Airport Code,
Airport Name, Controlling Airport Company Name, City, Amenities, Transport Options and Size will
be recorded. An airport should have at least one runway and a runway will have a unique number
and GPS coordinates and will belong to only one airport. Additional runway information include;
length, surface type, date of last resurfacing, and what type of runway it is (primary, secondary,
or under construction).
Rule 2: An airport will have one or more airlines that make use of the infrastructure and services
they offer. Airlines may operate from various airports. Airline information include; AirlineCode
and Name.
Rule 3: An airline will have one or more airplanes in their service. Take note, however, that an
airplane might have been ordered but has not been built, delivered or assigned to an airline.
Airplane information would include the Airplane call sign, Type, Capacity, Flight hours, and Engine
type.
Instructions
Enterprise rules
Rule 1: Ship information such as Ship Name, Port of Registry, Ship Builder, Building Cost, Number
of Decks, Propulsion, Speed, Passenger Capacity and Number of Crew should be recorded. A ship
can only operate in one region, but if it is being built or under repair it will not be linked to any
region. A region can have many ships however during certain periods no ships might operate in a
region. Region information include; Region Code, Location and Type
Rule 2: Ships have many crew members and for a ship to sail a required number of crew members
are required. Crew members can only work on one ship at a time but it may happen that they are
on a recess period when they will not be working on a ship. Information such as Crew ID, Name,
Surname, Date of Birth, Gender, Country of origin and Passport Number will be recorded.
Instructions
DATABASE 3 – Vet
Interpret the following information related to a small database for a ship company and answer the
questions that follow.
Enterprise rules
Rule 1: A customer can have many pets but to be registered on the system a customer should have
at least one pet. Pets must be assigned to only one customer. Pet information include; PetCode,
Name, Breed. Customer information include; CustomerID, Surname, Initials, CellNumber.
Rule 2: A pet can have one or more consultations; a consultation must be assigned to a single pet.
Consultation information include; ConsultationCode, Price, MedicineRecommendation
Rule 3: A pet can have one or more medications but need not have any at all. Medications could
be given to different pets. Medication information include; MedicineCode, Price. Different
medications might be distributed during different consultations. Consultations might have one or
more medications being distributed.
Instructions