SlideShare a Scribd company logo
4
Most read
18
Most read
20
Most read
Shubham Saini
Vellore Institute of Technology
7-Step Process:
1. Map Regular Entity Types
2. Map Weak Entity Types
3. Map Binary 1:1 Relation Types
4. Map Binary 1:N Relationship Types.
5. Map Binary M:N Relationship Types.
6. Map Multivalued attributes.
7. Map N-ary Relationship Types.
ER model to Relational model mapping
◦ For each regular (strong) entity type E in the ER
schema, create a relation R that includes all the
simple attributes of E.
◦ Choose one of the key attributes of E as the
primary key for R.
◦ If the chosen key of E is composite, the set of
simple attributes that form it will together form
the primary key of R.
ER model to Relational model mapping
◦ For each weak entity type W in the ER schema with owner
entity type E, create a relation R & include all simple
attributes (or simple components of composite attributes)
of W as attributes of R.
◦ Also, include as foreign key attributes of R the primary key
attribute(s) of the relation(s) that correspond to the owner
entity type(s).
◦ The primary key of R is the combination of the primary
key(s) of the owner(s) and the partial key of the weak entity
type W, if any.
ER model to Relational model mapping
ER model to Relational model mapping
◦ For each binary 1:1 relationship type R in
the ER schema, identify the relations S and
T that correspond to the entity types
participating in R.
◦ Choose one of the relations-say S-and
include a foreign key in S the primary key
of T. It is better to choose an entity type
with total participation in R in the role of S.
ER model to Relational model mapping
ER model to Relational model mapping
◦ For each regular binary 1:N relationship type R,
identify the relation S that represent the participating
entity type at the N-side of the relationship type.
◦ Include as foreign key in S the primary key of the
relation T that represents the other entity type
participating in R.
◦ Include any simple attributes of the 1:N relation type
as attributes of S.
ER model to Relational model mapping
ER model to Relational model mapping
◦ For each regular binary M:N relationship type R, create a
new relation S to represent R.
◦ Include as foreign key attributes in S the primary keys of
the relations that represent the participating entity types;
their combination will form the primary key of S.
◦ Also include any simple attributes of the M:N relationship
type (or simple components of composite attributes) as
attributes of S.
ER model to Relational model mapping
ER model to Relational model mapping
◦ For each multivalued attribute A, create a new relation R.
◦ This relation R will include an attribute corresponding to A,
plus the primary key attribute K-as a foreign key in R-of
the relation that represents the entity type of relationship
type that has A as an attribute.
◦ The primary key of R is the combination of A and K. If the
multivalued attribute is composite, we include its simple
components.
ER model to Relational model mapping
ER model to Relational model mapping
◦ For each n-ary relationship type R, where n>2, create
a new relationship S to represent R.
◦ Include as foreign key attributes in S the primary keys
of the relations that represent the participating entity
types.
◦ Also include any simple attributes of the n-ary
relationship type (or simple components of composite
attributes) as attributes of S.
ER model to Relational model mapping
 Database Management Systems
3rd Edition
Ramakrishnan - Gehrke

More Related Content

What's hot (20)

PDF
Normalization in DBMS
Hitesh Mohapatra
 
PPT
2. Entity Relationship Model in DBMS
koolkampus
 
PPTX
Normal forms
Samuel Igbanogu
 
PPT
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Oum Saokosal
 
PDF
Database design & Normalization (1NF, 2NF, 3NF)
Jargalsaikhan Alyeksandr
 
PPTX
Relational model
Dabbal Singh Mahara
 
PPT
Er & eer to relational mapping
saurabhshertukde
 
PPTX
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
Vraj Patel
 
PPTX
Presentation on Relational Schema (Database)
Salim Hosen
 
PPTX
Dbms normalization
Pratik Devmurari
 
PDF
Relational algebra in dbms
Vignesh Saravanan
 
PPTX
Functional dependencies and normalization
daxesh chauhan
 
DOCX
ER to relational Mapping: Data base design using ER to relational language. C...
Raj vardhan
 
PPTX
joins in database
Sultan Arshad
 
PPTX
Database Concept - Normalization (1NF, 2NF, 3NF)
Oum Saokosal
 
PDF
Enhanced Entity-Relationship (EER) Modeling
sontumax
 
PPT
OODM-object oriented data model
AnilPokhrel7
 
PPT
Entity Relationship Diagram
Shakila Mahjabin
 
PPTX
Normalization in DBMS
Prateek Parimal
 
PPT
Databases: Normalisation
Damian T. Gordon
 
Normalization in DBMS
Hitesh Mohapatra
 
2. Entity Relationship Model in DBMS
koolkampus
 
Normal forms
Samuel Igbanogu
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Oum Saokosal
 
Database design & Normalization (1NF, 2NF, 3NF)
Jargalsaikhan Alyeksandr
 
Relational model
Dabbal Singh Mahara
 
Er & eer to relational mapping
saurabhshertukde
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
Vraj Patel
 
Presentation on Relational Schema (Database)
Salim Hosen
 
Dbms normalization
Pratik Devmurari
 
Relational algebra in dbms
Vignesh Saravanan
 
Functional dependencies and normalization
daxesh chauhan
 
ER to relational Mapping: Data base design using ER to relational language. C...
Raj vardhan
 
joins in database
Sultan Arshad
 
Database Concept - Normalization (1NF, 2NF, 3NF)
Oum Saokosal
 
Enhanced Entity-Relationship (EER) Modeling
sontumax
 
OODM-object oriented data model
AnilPokhrel7
 
Entity Relationship Diagram
Shakila Mahjabin
 
Normalization in DBMS
Prateek Parimal
 
Databases: Normalisation
Damian T. Gordon
 

Similar to ER model to Relational model mapping (20)

PPTX
Module_2_ER_to_relational_mapping_algorithm.pptx
sayedabdulqadar7
 
PPT
Relational-DB-design in database management system
sandeep945342
 
PDF
DBMS seminar.pdf mapping eer model to relational model
haplessvarsh267
 
PPT
Mapping
Samir Sabry
 
PDF
Web app development_database_design_er-mapping_12
Hassen Poreya
 
PDF
RDBMS ER2 Relational
Sarmad Ali
 
PDF
Pokok Bahasan 06 ER-EER to Relational Mapping (1).pdf
jefrifrans
 
PPT
Mapping EER Model Constructs to Relations ADB_05_BRvs.ppt
SenzotaSemakuwa
 
PDF
ch07-Relational Database Design by ER- and EERR-to-Relational Mapping.pdf
RounakSaha34
 
PPT
vdocuments.net_copyright-2007-ramez-elmasri-and-shamkant-b-navathe-slide-7-1.ppt
natyesu
 
PPTX
ERD_to_Rel2.PPThhhhhhhhhhhhhhhhhhhh.pptx
PreetiAggarwal52
 
PDF
Dbms 6: ER Modeling
Amiya9439793168
 
PPT
Chapter09.ppt
SuvadeepBhattacharje1
 
PDF
Create a Relational Schema from the ER Diagram Conceptual S.pdf
yuvarajm76
 
DOCX
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
Raj vardhan
 
PDF
7. ER Model to Relational Model copy.pdf
RaksaMa1
 
PPTX
The relational data model part[1]
Bashir Rezaie
 
PPTX
Entity relationship Models from Chapter 4
ssuserb53446
 
Module_2_ER_to_relational_mapping_algorithm.pptx
sayedabdulqadar7
 
Relational-DB-design in database management system
sandeep945342
 
DBMS seminar.pdf mapping eer model to relational model
haplessvarsh267
 
Mapping
Samir Sabry
 
Web app development_database_design_er-mapping_12
Hassen Poreya
 
RDBMS ER2 Relational
Sarmad Ali
 
Pokok Bahasan 06 ER-EER to Relational Mapping (1).pdf
jefrifrans
 
Mapping EER Model Constructs to Relations ADB_05_BRvs.ppt
SenzotaSemakuwa
 
ch07-Relational Database Design by ER- and EERR-to-Relational Mapping.pdf
RounakSaha34
 
vdocuments.net_copyright-2007-ramez-elmasri-and-shamkant-b-navathe-slide-7-1.ppt
natyesu
 
ERD_to_Rel2.PPThhhhhhhhhhhhhhhhhhhh.pptx
PreetiAggarwal52
 
Dbms 6: ER Modeling
Amiya9439793168
 
Chapter09.ppt
SuvadeepBhattacharje1
 
Create a Relational Schema from the ER Diagram Conceptual S.pdf
yuvarajm76
 
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
Raj vardhan
 
7. ER Model to Relational Model copy.pdf
RaksaMa1
 
The relational data model part[1]
Bashir Rezaie
 
Entity relationship Models from Chapter 4
ssuserb53446
 
Ad

Recently uploaded (20)

PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Python basic programing language for automation
DanialHabibi2
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Ad

ER model to Relational model mapping

  • 2. 7-Step Process: 1. Map Regular Entity Types 2. Map Weak Entity Types 3. Map Binary 1:1 Relation Types 4. Map Binary 1:N Relationship Types. 5. Map Binary M:N Relationship Types. 6. Map Multivalued attributes. 7. Map N-ary Relationship Types.
  • 4. ◦ For each regular (strong) entity type E in the ER schema, create a relation R that includes all the simple attributes of E. ◦ Choose one of the key attributes of E as the primary key for R. ◦ If the chosen key of E is composite, the set of simple attributes that form it will together form the primary key of R.
  • 6. ◦ For each weak entity type W in the ER schema with owner entity type E, create a relation R & include all simple attributes (or simple components of composite attributes) of W as attributes of R. ◦ Also, include as foreign key attributes of R the primary key attribute(s) of the relation(s) that correspond to the owner entity type(s). ◦ The primary key of R is the combination of the primary key(s) of the owner(s) and the partial key of the weak entity type W, if any.
  • 9. ◦ For each binary 1:1 relationship type R in the ER schema, identify the relations S and T that correspond to the entity types participating in R. ◦ Choose one of the relations-say S-and include a foreign key in S the primary key of T. It is better to choose an entity type with total participation in R in the role of S.
  • 12. ◦ For each regular binary 1:N relationship type R, identify the relation S that represent the participating entity type at the N-side of the relationship type. ◦ Include as foreign key in S the primary key of the relation T that represents the other entity type participating in R. ◦ Include any simple attributes of the 1:N relation type as attributes of S.
  • 15. ◦ For each regular binary M:N relationship type R, create a new relation S to represent R. ◦ Include as foreign key attributes in S the primary keys of the relations that represent the participating entity types; their combination will form the primary key of S. ◦ Also include any simple attributes of the M:N relationship type (or simple components of composite attributes) as attributes of S.
  • 18. ◦ For each multivalued attribute A, create a new relation R. ◦ This relation R will include an attribute corresponding to A, plus the primary key attribute K-as a foreign key in R-of the relation that represents the entity type of relationship type that has A as an attribute. ◦ The primary key of R is the combination of A and K. If the multivalued attribute is composite, we include its simple components.
  • 21. ◦ For each n-ary relationship type R, where n>2, create a new relationship S to represent R. ◦ Include as foreign key attributes in S the primary keys of the relations that represent the participating entity types. ◦ Also include any simple attributes of the n-ary relationship type (or simple components of composite attributes) as attributes of S.
  • 23.  Database Management Systems 3rd Edition Ramakrishnan - Gehrke