Você está na página 1de 3

Databases Bachelor IK, 2015

Assignment 1 Introduction and ER-diagrams


Lecturer
Assistants
Hand out date
Deadline
Points

Prof. Dr. Hamideh Afsarmanesh <h.afsarmanesh(at)uva.nl>


Auke Zwaan < aukezw(at)msn.com >
Ferron Saan < ferron.saan(at)live.nl >
Monday, February 2
Thursday, February 12
20

Please answer the questions of this assignment and submit your answers as a PDF
document through the Blackboard.
This assignment must be done individually by all students.
Provided definitions in this assignment must be in your own words and not copied from
the book.
The assistants may ask you some questions about the assignment.
*Please provide all your answers in English.

Question 1 (4 point)
Provide definitions for the following database related concepts, in your own words
(providing two or three sentences for each definition are sufficient):
1.1. Procedural DML
1.2. Data Dictionary
1.3. Logical level
1.4. Referential Integrity

Question 2 (4 points)
Consider a region with several large chemical factories. The region is taking pre-cautions,
focused on the possibility of a potential explosion in some factory, and how to enhance
the rescue efforts. You are being hired by the government of the region to build a
database system that can include all information needed for such a potential disaster
rescue effort in this region. Answer the following questions:
2.1. What are different levels of database design, which you should consider for building this
database system.

2.2. Provide 4 example stakeholders (e.g. different role names from the involved
organizations), which are relevant to both the building of this database system and its
potential use. Specify one stakeholder role (after the database is built) that should have
the highest level of access rights in the database system in comparison to all others.

Question 3 (12 points)


Internet Movie Database (abbreviated IMDB) is an online database of information related
to movies. The Functionality and content of this database are as follows:
Each movie in the database should have a movie ID, year made, storyline, genre,
country, website, runtime, title.
A movie release is a version of a movie that is issued for showing in some
countries of the world; a release may change in various ways from the original,
i.e. Starting date, Finish date and Rating.
The people who are involved in the making of a movie are called movie person.
IMDB stores their numeric ID and biographical details including Birth date, Age
Gender, and Birth place, and every person must at least have a known stage name
and website.
IMDB stores information about the movie company that has made a movie. This
information include: company ID, name, started, country, closed, and type.

IMDB accepts two types of visiting users, including: members and staff.

The user should have a user ID, user name, name, password, email, location.
If the user is a staff then their address and phone numbers should also be stored.
If the user is a member then visit-times and details of visit must be recorded.
Only IMDB Members can rate movies.
News can be posted by the staff, and must have a newsID, title, URL, location of
source, comments, and must reference the movies and movie persons to whom the
news belongs. Please note that the submit date of the news should also be stored.
Members can give feedback with the item ID, title, their comments, and their
expertise level. Every feedback from a member has a feedback date.

3.1. (10 points)


Considering the descriptions given above, draw an ER diagram for the database,
illustrating all its details such as entity sets, attributes, and relationship sets, etc. Please
pay attention to clear identification and representing different kinds of attributes (e.g.
composite, multi-valued, derived, primary keys, etc.), and the mapping cardinalities, the
total participation for each relationship set, and all other detailed elements for a complete
ER diagram.
3.2. (2 points)
Specifically from your designed, ER diagram in front of each element below please list
the name(s) of any and all the relevant concepts that you have introduced in your ER
diagram. In case some of these elements are absent in your diagram, please make sure
that they are not needed in the model, and specify this fact in one sentence as your
answer.

Strong Entity sets


Generalizations of the entity sets
Relationship sets
Attributes per entity set

Primary keys
Composite attributes
Multi-valued attributes
Derived attributes
Total participation for the relationship sets
Attributes per relationship set
Mapping cardinalities for the relationship sets (when needed to clarify the
cardinality of entities involvement in relationships)
Weak entity sets
Identifying relationship sets
Discriminating attributes

Question Bonus 1(Looking ahead to relational databases) (4 bonus point)


Consider the situation where we have two relational tables: Employees and Managers.
The Employees table has a foreign key attribute entitled ManagedBy which points to the
record for that employees manager in the Managers table. To set each of the following 4
rules in the database, identify which one of the integrity constraints (i.e. Domain
Constraint, Referential Integrity, Assertion/check) or a security Authorization shall be
used, in order to enforces the rule?
Bonus 1.1
The number of employees managed by each manager should be less than
the number of all employees, which work at the managers department.
Bonus 1.2
If the primary key for a record in the Managers table changes, all
corresponding records in the Employees table must be modified using a cascading
update.
Bonus 1.3
If a record in the Managers table is deleted, all corresponding records in
the employees table must be deleted using a cascading delete.
Bonus 1.4
The acceptable data within the attribute Phone-number of Employee
table should be more than 8 digits.

Você também pode gostar