Examlex
Consider the following relational database for the Central Zoo. Central Zoo wants to maintain information about its animals, the enclosures in which they live, and its zookeepers and the services they perform for the animals. In addition, Central Zoo has a program by which people can be sponsor of animals. Central Zoo wants to track its sponsors, their dependents, and associated data.
Each animal has a unique animal number and each enclosure has a unique enclosure number. An animal can live in only one enclosure. An enclosure can have several animals in it or it can be currently empty. A zookeeper has a unique employee number. Some zookeepers supervise other zookeepers. Every animal has been cared for by at least one and generally many zookeepers; each zookeeper has cared for at least one and generally many animals. Each time a zookeeper performs a specific, significant service for an animal the service type, date, and time are recorded. A zookeeper may perform a particular service on a particular animal more than once on a given day.
A sponsor, who has a unique sponsor number and a unique social security number, sponsors at least one and possibly several animals. An animal may have several sponsors or none. For each animal that a particular sponsor sponsors, the zoo wants to track the annual sponsorship contribution and renewal date. In addition, Central Zoo wants to keep track of each sponsor's dependents. A sponsor may have several dependents or none. A dependent is associated with exactly one sponsor.
ENCLOSURE Relation
ANIMAL Relation
ZOOKEEPER Relation
CARES FOR Relation
SPONSOR Relation
CONTRIBUTION Relation
DEPENDENT Relation
a. Identify the candidate keys of each relation.
b. Identify the primary key and any alternate keys of each relation.
c. How many foreign keys does each relation have?
d. Identify the foreign keys of each relation.
e. Indicate any instances in which a foreign key serves as part of the primary key of the relation in which it is a foreign key. Why does each of those relations require a multi-attribute primary key?
f. Identify the relations that support many-to-many relationships, the primary keys of those relations, and any intersection data.
g. Using the informal relational command language described in this chapter, write commands to:
i. Retrieve the record for animal number 58560.
ii. Retrieve the record for the tiger named Stripes.
iii. List all of the tigers born in India.
iv. List the name and animal number of every animal born in China that weighs less than 100 pounds .
v. List the name and number of every tiger.
vi. What is the country of birth of animal number 74371?
vii. What is the type and size of the enclosure used for animal number 74371?
viii. List the name and address of every sponsor of animal number 74371.
Formal Education
The structured, systematic instruction and training provided by schools and institutions, leading to recognized qualifications.
Puberty
The developmental stage during which a child's body matures into an adult body capable of sexual reproduction.
Anal Stage
A phase in Freudian psychosexual development occurring roughly between the ages of 18 months and three years when children focus on bowel and bladder control.
Anal Character
A personality type that Freud theorized is characterized by orderliness, stubbornness, and a focus on control as a result of certain experiences during the anal stage of psychosexual development.
Q3: The software that was developed to handle
Q4: Converting a one-to-one binary relationship in an
Q6: Deadlock cannot happen if locks are used
Q6: There is a(n) _ relationship between each
Q7: The firewall technique of "proxy computers" is
Q17: Draw an object-oriented class diagram, including traditional
Q22: Ash Company reported sales of $400,000 for
Q31: Managing Enterprise Resource Planning (ERP) databases would
Q40: Data redundancy _.<br>A) can occur across multiple
Q57: A data mart (DM) _.<br>A) must be