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

Q1 Consider the following information about a university database:

Professors have an SSN, a name, an age, a rank, and a research specialty.


Projects have a project number, a sponsor name, a starting date, an ending date, and
a budget.
Graduate students have SSN, a name, an age, and a degree program (e.g., M.S. Or
Ph.D.).
Each project is managed by one professor (known as the projects principal
investigator).
Each project is worked on by one or more professors (known as the projects
coinvestigators).
Professors can manage and/or work on multiple projects.
Each project is worked on by one or more graduate students (known as the projects
research assistants).
When graduate students work on a project, a professor must supervise their work on
the project. Graduate studentscan work on multiple projects, in which case they will
have a (potentially different) supervisor for each one.
Departments have a department number, a department name, and a main office.
Departments have a professor (known as the chairman) who runs the department.
Professors work in one or more departments, and for each department that they work
in, a time percentage is associated with their job.
Graduate students have one major department in which they are working on their
degree.
Create an ER/EER diagram that fulfils the above requirements and motivate your
suggestions. The exercise will be assessed both according to correct ER/EER syntax
and whether you have made a good design.
Solution:
Additional comments/assumptions:
It has been assumed that sets of students and professors are disjoint.
Works on is a ternary relation.
This allows for relating a particular student to a particular supervisor in the
context of a particular project.
It has been assumed that one professor can be a head of at most one department.

Every department has its chairman, and at least one professor (the chairman)
employed, thus two total relationships (double lines).
Each project has a principal investigator, one or more co-investigators and students
working on it, therefore total participation relationships.
Every student has a major department she/he works in, but its not clear whether the
students work in every department, thus in the Works at relationship a double line
from Student side and a single one from the department side.

Q2 Design a database to keep track of information for an art museum. Assume that
the following requirements were collected.
The museum has a collection of ART_OBJECTS . Each art object has a unique
IDNo, and Artist, if known, a Year (when created, if known) a Title and a
Description. The art objects are categorized in several ways, as discussed below.
ART_OBJECTS are categorized based on types. There are three main types,
Painting, Sculpture and Statue, plus an Other category for those that dont fit
into one of the categories above.

A PAINTING has a PaintType (oil, watercolor, etc) a material on which it is


CrawnOn (paper, canvas, wood) and Style (modern, abstract etc)
A SCULPTURE or a STATUE has a Material from which it was created (wood,
stone, etc) Height, Weight and Style.
An art object in the OTHER category has a Type(print, photo, etc) and Style.
ART_OBJECTS are also categorized as PERMANENT_COLLECTION, which
are owned by the museum (DateAcquired, whether it is OnDisplay or Stored and
Cost) or BORROWED, which has information on the Collection (where it was
borrowed from), DateBorrowed, and DateReturned.
ART_OBJECTS also have information describing their country-culture using
information on country/culture of Origin (Italian, Egyptial, American, Indian etc)
and Period(Renaissance, Modern, Ancient)
The museum keeps track of ARTISTSs information, if known: Name, DateBorn,
DateDied, CountryOfOrigin, Period, MainStyle and Description. The name is
assumed unique.
Different EXHIBITIONS occur, each having a Name, StartDate and EndDate.
EXHIBITIONS are related to all the art objects that were on display during the
exhibition.
Information is kept on other COLLECTIONS with which the museum interacts,
including Name (unique), Type (museum, personnel etc), Description, Address,
Phone and ContactPerson.

Draw an EER schema for this application. Record any assymptions you make.
Solution:

You might also like