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

ASSIGNMENT#02

Q1. Draw an ER diagram for the given scenario;

Suppose that you are designing a schema to record information about reality shows
on TV. Your database needs to record the following information:

_ For each reality show, its name, genre, basic_info and participants name. Any
reality show has at least two or more participants.

_ For each producer, the company name, company country. A show is produced by
exactly one producer. And one producer produces exactly one show.

_ For each television, its name, start year, head office.  A television may broadcast
multiple shows. Each show is broadcasted by exactly one television.

_ For each user, his/her username, password, and age. A user may rate multiple
shows, and a show may be rated by multiple users. Each rating has a score of 0 to
10.

Q2. Design an E-R Diagram for the following scenario. A relational database is
to be designed for a medium sized Company dealing with industrial applications of
computers. The Company delivers various computer products to its customers.
Some products serve generic purpose, therefore, they are sold to various customers
The Company has number of employees in each department; each is specialized in
one particular area (i.e. consultant, programmer, support, system analyst,
developer) but each area contains many employees. For product delivery, projects
are carried out in an inter-disciplinary way. The Company starts one new project
for each requested product. When a project is undertaken, a team is formed by
grouping employees from different departments that can share different groups An
employee is also assigned as the project manager of the team who is entirely and
exclusively responsible for the control of the project. An employee can manage
more than one team. Teams and projects are only formed when a product order is
placed.

Q3. Read the following case study, which describes the data
requirements for a DVD rental company. The DVD rental
company has several branches throughout the United States.The
data held on each branch is the branch address made up of
street, city, state, and zip code, and the telephone number. Each
branch is given a branch number, which is unique throughout
the company. Each branch is allocated staff, which includes a
Manager. The Manager is responsible for the day-to-day running
of a given branch. The data held on a member of

staff is his or her name, position, and salary. Each

member of staff is given a staff number, which is


unique throughout the company. Each branch has a stock
of DVDs. The data held on a DVD is the catalog
number, DVD number, title, category, daily rental,cost, status,and
the namesof the main actors and the director. The catalog
number uniquely identifies each DVD. However, in most cases,
there are several copiesof each DVD at a branch, and
the individual copiesare identified using the DVD number. A
DVDis given a category such as Action, Adult,Children,
Drama, Horror, or Sci-Fi. The status indicates whether
a specific copy of a DVD is available for rent.
Before borrowing a DVD from the company, a customer
must first register as a member of a local branch.
The data held on a member is the first and last name,
address, and the date that the member registered at a
branch. Each member is given a member number, which
is unique throughout all branches of the company. Once
registered, a member is free to rent DVDs, up to
a maximum of ten at any one time. The data held on
each DVD rentedis the rental number, the full name and
number of the member, the DVD number, title, and daily
rental, and the dates the DVD is rentedout and returned.
The DVD number is unique throughout the company.

(a) Identify the main entity types of the DVD rentalcompany.

(b) Identify the main relationshiptypes between the entity types


described in part (a) and represent each relationship as
an ER diagram.

You might also like