Professional Documents
Culture Documents
Department of Computer Science Bahria University, Islamabad
Department of Computer Science Bahria University, Islamabad
Fall 2020
BS-IT-4AB
Lab Manual 11
Lab # 11
• Conversion from Entity Relationship Model to a Relational Model
___________________________________________________________________________
______________
This lab will focus on the process of converting a conceptual design in the form of an
ERD to a relational design i.e. schema. The process is carried out using a 9 step
algorithm, which specifies the conversion.
The 9 step algorithm of mapping conceptual to relational schema includes 7 steps for
mapping ER model to relations and the additional two steps are used to map the
additional concepts i.e. the EER to relational design. Various steps of the algorithm
include:
▪ Step 1: Mapping of Regular Entity Types
▪ Step 2: Mapping of Weak Entity Types
▪ Step 3: Mapping of Binary 1:1 Relationship Types
▪ Step 4: Mapping of Binary 1:N Relationship Types
▪ Step 5: Mapping of Binary M:N Relationship Types
▪ Step 6: Mapping of Multivalued Attributes
▪ Step 7: Mapping of N-ary Relationship Types
▪ Step 8: Options for Mapping Specialization or Generalization
▪ Step 9: Mapping of Union Types
Example
Carefully study the following ER Model before moving to the next page
3
Lab Tasks
1. Convert ERD for US Congressperson into a relational model. Show relational
model as well as give DDL commands
4
CONGRESSPERSON:
NAME DISTRICT PARTY START_DATE
STATE:
name REGION NAME
BILL:
BILL_NAME PASSED_FAILED DATE_OF_VOTE
SPONSORED:
NAME BILL_NAME
VOTED:
HOW NAME BILL_NAME
Additional Practice: