SlideShare a Scribd company logo
Eng.Samir Sabry
IT Instructor
Mapping Rules
Step 1: regular entity types
Create a new relation that includes Simple attributes
 For a composite attribute include only the simple component attributes
 Leave out multivalued attributes (to step 6)
 Pick a PK
Step 2: weak entity types
Note: Weak entity type has no key - Related to an identifying or owner entity
type. Has total participation constraint with identifying entity.
 Create a new relation with simple attributes
 Include an FK to the owner entity's relation
Step 3: 1:1 relationship types
Add to one of the participating relations an FK to the other relation:
 It is better to add to a relation that has total participation in the relationship
 Include any relationship attributes
Step 4: 1: N relationship types
 Add to the relation on the N-side an FK to the other relation.
 Include any relation attributes
Step 5: M: N relationship types
 Create a New relation containing as FK of the primary keys of both entity types
participating relations
 Include any relation attributes
Step 6: multi-valued attribute
Create new relation containing FK of the PK from the Entity
Step 7: ternary relationship types
 Create new relation containing a FK referencing each of the 3 entities involved
 Include any relation attributes
Notes: How many relations?
1. Entity (both regular and weak)
2. M:N relationship
3. Multi-valued attribute
4. Ternary relationship

More Related Content

DOCX
Hospital Management system Database design
PDF
Video Rental System
PDF
SIMRS
PDF
LinkIT Hospital Management System
PPTX
Hospital management
PDF
Hospital Management System (2nd Task)
DOCX
Asu bus management project (autosaved)
PPTX
Ppt kerajaan kadiri
Hospital Management system Database design
Video Rental System
SIMRS
LinkIT Hospital Management System
Hospital management
Hospital Management System (2nd Task)
Asu bus management project (autosaved)
Ppt kerajaan kadiri

What's hot (8)

PPTX
Kelompok 1 kerajaan kutai
PDF
Hospital Management System Project Report
PPT
IMPLEMENTASI DARI PENERAPAN SISTEM INFORMASI MANAJEMEN PT INDOFOOD SUKSES MAK...
DOCX
Scope and objective of the assignment
PPT
Struktur Hirarki
PPTX
Penyebaran Agama Hindu Buddha di Nusantara.pptx
PDF
Software development plan siabm
PPTX
Ppt kerajaan kediri
Kelompok 1 kerajaan kutai
Hospital Management System Project Report
IMPLEMENTASI DARI PENERAPAN SISTEM INFORMASI MANAJEMEN PT INDOFOOD SUKSES MAK...
Scope and objective of the assignment
Struktur Hirarki
Penyebaran Agama Hindu Buddha di Nusantara.pptx
Software development plan siabm
Ppt kerajaan kediri
Ad

Similar to Mapping rules (20)

PPT
Kul 2
PPT
Ch 6 Logical D B Design
PPTX
ER model to Relational model mapping
PPTX
PANGKALAN DATA TOPIK 2 ER DIAGRAM DAN
PDF
7. ER Model to Relational Model copy.pdf
DOCX
ER to relational Mapping: Data base design using ER to relational language. C...
PPTX
Module_2_ER_to_relational_mapping_algorithm.pptx
PPTX
Logical database design and the relational model(database)
PPT
Er & eer to relational mapping
PPT
Entity relationship diagram for dummies
PPTX
Steps to create an ER Diagram, ER model Keys.pptx
PPTX
Entity Relationship Model
PDF
Mapping example
PDF
Mapping example
PDF
Unit 2 DBMS
PPTX
Data Models.pptx
PPT
Chapter09.ppt
PPT
Databases chapter 6 about databases data and sql
PPTX
E - R Models.pptx SQL and plsql database
PPT
Mapping
Kul 2
Ch 6 Logical D B Design
ER model to Relational model mapping
PANGKALAN DATA TOPIK 2 ER DIAGRAM DAN
7. ER Model to Relational Model copy.pdf
ER to relational Mapping: Data base design using ER to relational language. C...
Module_2_ER_to_relational_mapping_algorithm.pptx
Logical database design and the relational model(database)
Er & eer to relational mapping
Entity relationship diagram for dummies
Steps to create an ER Diagram, ER model Keys.pptx
Entity Relationship Model
Mapping example
Mapping example
Unit 2 DBMS
Data Models.pptx
Chapter09.ppt
Databases chapter 6 about databases data and sql
E - R Models.pptx SQL and plsql database
Mapping
Ad

More from Samir Sabry (13)

PDF
Normalization
PDF
Keyboard symbols
PPS
PPT
Normlaization
PPT
Data mining
PPT
Data warehouse
PPS
2010 Calendriersexy
PDF
Sample Test Word Intermediate Mulitple Choice
PDF
Computer Fundamentals Test
PDF
Database Management System And Design Questions
PDF
Test In Word
PPT
Data Warehouse
PPT
Digital Image Processing
Normalization
Keyboard symbols
Normlaization
Data mining
Data warehouse
2010 Calendriersexy
Sample Test Word Intermediate Mulitple Choice
Computer Fundamentals Test
Database Management System And Design Questions
Test In Word
Data Warehouse
Digital Image Processing

Recently uploaded (20)

PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
01-Introduction-to-Information-Management.pdf
PPTX
master seminar digital applications in india
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Business Ethics Teaching Materials for college
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Institutional Correction lecture only . . .
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Renaissance Architecture: A Journey from Faith to Humanism
Supply Chain Operations Speaking Notes -ICLT Program
Abdominal Access Techniques with Prof. Dr. R K Mishra
102 student loan defaulters named and shamed – Is someone you know on the list?
01-Introduction-to-Information-Management.pdf
master seminar digital applications in india
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Business Ethics Teaching Materials for college
PPH.pptx obstetrics and gynecology in nursing
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Pharma ospi slides which help in ospi learning
Institutional Correction lecture only . . .
VCE English Exam - Section C Student Revision Booklet
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Week 4 Term 3 Study Techniques revisited.pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf

Mapping rules

  • 1. Eng.Samir Sabry IT Instructor Mapping Rules Step 1: regular entity types Create a new relation that includes Simple attributes  For a composite attribute include only the simple component attributes  Leave out multivalued attributes (to step 6)  Pick a PK Step 2: weak entity types Note: Weak entity type has no key - Related to an identifying or owner entity type. Has total participation constraint with identifying entity.  Create a new relation with simple attributes  Include an FK to the owner entity's relation Step 3: 1:1 relationship types Add to one of the participating relations an FK to the other relation:  It is better to add to a relation that has total participation in the relationship  Include any relationship attributes Step 4: 1: N relationship types  Add to the relation on the N-side an FK to the other relation.  Include any relation attributes Step 5: M: N relationship types  Create a New relation containing as FK of the primary keys of both entity types participating relations  Include any relation attributes Step 6: multi-valued attribute Create new relation containing FK of the PK from the Entity Step 7: ternary relationship types  Create new relation containing a FK referencing each of the 3 entities involved  Include any relation attributes Notes: How many relations? 1. Entity (both regular and weak) 2. M:N relationship 3. Multi-valued attribute 4. Ternary relationship