DBMS Lab 06 28102020 013107pm
DBMS Lab 06 28102020 013107pm
Fall 2020
BS-IT-4AB
Lab Manual 6
Lab #6
Entity Relationship Modeling
__________________________________________________________________________
1|Page
To sum up, in Entity Relationship Modeling, we model entities, their attributes and
relationships among entities.
One of the challenges faced when designing database is the fact that designers,
developers and end-users tend to view data and its usage differently. If this situation
is left unchecked, we can end up producing a database system that does not meet
the requirements of the users. Tools such as ER Models are critical in producing
database systems that meet the requirements of the users.
Example
Suppose you are required to create a database system from the perspective of a
book agency. The simplest system should be able to record information of a novel, its
writer and readers.
In order to create an ER Diagram for this problem, database designer should identify
following items
Entities
Attributes of entities
Relationships between entities
Entity
Relationship
Attributes
Multivalue D
Simple attribute d attribute erived attribute
Entities
2|Page
3
Attributes
Relationships
Complete ER Model
4|Page
5
5|Page
Lab Tasks
Given the two scenarios below, provide an Entity-Relationship Diagram which
clearly shows all the entities and their relationships. Be sure that the structured
constraints are shown. If you make any assumptions other than those described below,
present them in writing. Be sure that these assumptions make sense. Also, make sure
that the assumptions do not contradict any facts (implicit and explicit) given in the
description.
Recommended: Try to use any available data modeling tools for the ER diagrams, such
as IBM Rational Data Architect, ERwin, Microsoft Visio, etc.)
1. GFN Group of Companies have contacted you to design a database system for
them. GFN Group want to launch a Medical Test Lab where the system should be
able to keep track of individual patients and the medical tests performed for that
patient. Moreover they also want to keep track of the doctors who prescribed a
test. Draw an ER Diagram for your proposed model.
2. A database is being constructed to keep track of the teams and games of a sports
league. A team has a number of players, not all of whom participate in each game.
It is desired to keep track of the players participating in each game for each team,
the positions they played in that game, and the result of the game. Choose your
favorite sport (e.g., hockey, cricket, football, baseball, etc.).
3. Modify your solutions to reflect correct cardinalities for Question 1 and Question
2.
6|Page