Assignment#02: Q1. Draw An ER Diagram For The Given Scenario
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