Examlex

Solved

Consider the Following Relational Database for the Central Zoo ENCLOSURE Relation

question 10

Essay

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. 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  Date  Number  Type  Location  Size  Built \begin{array} { | l | l | l | l | l |} \hline \text { Enclosure } & & && \text { Date } \\\text { Number } & \text { Type } & \text { Location } & \text { Size } & \text { Built } \\\hline\end{array} ENCLOSURE Relation
 Animal  Animal  Country  Enclosure  Number  Species  Narne  Gender  Of Birth  Weight  Number \begin{array} { | l | l | l | l | l | l | l | } \hline \text { Animal } & & \text { Animal } & & \text { Country } & & \text { Enclosure } \\\text { Number } & \text { Species } & \text { Narne } & \text { Gender } & \text { Of Birth } & \text { Weight } & \text { Number } \\\hline\end{array} ANIMAL Relation
 Employee  Employee  Year  Number  Name  Title  Hired \begin{array} { | l | l | l | l | } \hline \text { Employee } & \text { Employee } & & \text { Year } \\\text { Number } & \text { Name } & \text { Title } & \text { Hired } \\\hline\end{array} ZOOKEEPER Relation
 Animal  Employee  Service  Number  Number  Type  Date  Time \begin{array} { | l | l | l | l | l |} \hline\text { Animal } & \text { Employee } & \text { Service } & & \\\text { Number } & \text { Number } & \text { Type } & \text { Date } & \text { Time } \\\hline\end{array} CARES FOR Relation
 Sponsor  Social Security  Sponsor  Number  Number  Narne  Address  Telephone \begin{array} { | l | l | l | l | l |} \hline \text { Sponsor } & \text { Social Security } & \text { Sponsor } & & \\\text { Number } & \text { Number } & \text { Narne } & \text { Address } & \text { Telephone } \\\hline\end{array} SPONSOR Relation
 Animal  Sponsor  Annual  Renewal  Number  Number  Contribution  Date \begin{array} { | l | l | l | l | } \hline \text { Animal } & \text { Sponsor } & \text { Annual } & \text { Renewal } \\\text { Number } & \text { Number } & \text { Contribution } & \text { Date }\\\hline\end{array} CONTRIBUTION Relation
 Sponsor  Dependent  Date of  Number  Name  Relationship  Birth \begin{array} { | l | l | l | l | } \hline \text { Sponsor } & \text { Dependent } & & \text { Date of } \\\text { Number } & \text { Name } & \text { Relationship } & \text { Birth } \\\hline\end{array} DEPENDENT Relation
a. Design a multidimensional database using a star schema for a data warehouse for the Central Zoo business environment. The subject will be "sponsorship" which represents a particular sponsor sponsoring a particular animal. Be sure to keep track of the annual contribution and the renewal date for the sponsorship. Assume that the annual contribution can change with the renewal date, i.e. it can be different in different years.
b. Describe three OLAP uses of this data warehouse.
c. Describe one data mining use of this data warehouse.


Definitions:

Method Clone

A method in Java that creates and returns a copy of an object, often overridden to ensure deep cloning of complex objects.

Override

A feature in programming languages that allows a subclass or child class to provide a specific implementation of a method that is already provided by its parent class.

Late Binding Mechanism

The process of linking a function call to the actual code to be executed at runtime, rather than compile time.

Polymorphism

A programming concept allowing objects of different classes to be treated as objects of a common superclass, enabling multiple forms of behavior.

Related Questions