SlideShare a Scribd company logo
2
Most read
3
Most read
5
Most read
MAPPING
CARDINALITIES
IN ER DIAGRAM
DBMS
In Hindi
Mapping Cardinalities / Cardinality Ratio
Cardinality defines the number of entities in one entity set, which can be associated
with the number of entities of other set via relationship set.
Cardinality specifies the maximum number of relationships.
For binary relationship set R on an entity set A and B, there are four possible
mapping cardinalities. These are as follows:
One-to-one (1:1)
One-to-many (1:N)
Many-to-one (N:1)
Many-to-many (M:N)
One-to-one
One entity from entity set A can be associated with at most one entity of entity set B
and vice versa.
a1
a2
a3
a4
b1
b2
b3
b4
A B
a1
a2
a3
a4
b1
b2
b3
b4
A B
One-to-one Examples
One citizen has one Aadhar number, and the Aadhar number can only be used by one
citizen.
Indian
citizen
Has Aadhaar
number
1 1
One student has only one student ID, and each student ID is assigned to only one student.
Student Has Student ID
One-to-many
One entity from entity set A can be associated with more than one entity of entity set B,
however an entity from entity set B can be associated with at most one entity from
entity set A.
a1
a2
a3
a4
b1
b2
b3
b4
A B
One-to-many Example
Each customer may have more than one telephone number. but each telephone
number will be associated to only one customer.
Customer Has
Telephone
Number
1 N
Customer Has
Telephone
Number
Many-to-one
More than one entities from entity set A can be associated with at most one entity of
entity set B, however an entity from entity set B can be associated with more than one
entity from entity set A.
a1
a2
a3
a4
b1
b2
b3
b4
A B
Many-to-one Example
N 1
Student Enrolled in Course
A student can take only one course, but one course can be taken by many students.
So, the cardinality will be N to 1. It means that for one course there can be N
students but for one student, there will be only one course.
Employee Works in Department
Many-to-many
One entity from A can be associated with more than one entity from B and vice versa.
a1
a2
a3
a4
b1
b2
b3
b4
A B
Many-to-many Examples
Each customer may place an order for many products, and each product might be
ordered by many customers.
Customer
Places
Order Product
M N
Employee
Works
On Project
An employee may work on multiple projects, and a project may have
multiple employees working on it.
Thanks for watching!
If you have a question, you can reach me via e-mail at omega.teched@gmail.com
Social Media Handles:
omega.teched
megha_with
megha-sharma24
OMega TechEd

More Related Content

PPT
Mapping cardinalities
PPTX
Er model ppt
PPTX
DBMS: Types of keys
PPTX
Relational Database Design
PPT
2. Entity Relationship Model in DBMS
PPTX
Er diagrams presentation
PPT
ER-Model-ER Diagram
ODP
ER Model in DBMS
Mapping cardinalities
Er model ppt
DBMS: Types of keys
Relational Database Design
2. Entity Relationship Model in DBMS
Er diagrams presentation
ER-Model-ER Diagram
ER Model in DBMS

What's hot (20)

PPT
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
PPTX
Introduction to Oracle Database
PPT
Dbms relational model
PPTX
Relational model
PPT
Entity relationship modelling
PPTX
stack & queue
PPTX
Mapping cardinality (cardinality constraint) in ER MODEL
PPT
Class and object in C++
PPTX
Er diagram
PPTX
How java differs from c and c++
PPT
Abstract data types
PPT
Entity Relationship Diagram
PPTX
Entity Relationship Diagrams
PPTX
Association agggregation and composition
PPTX
Data structures and algorithms
PPTX
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
PPTX
Entity Relationship design issues
PPTX
Architecture of operating system
PPTX
The Relational Database Model
PPTX
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
Introduction to Oracle Database
Dbms relational model
Relational model
Entity relationship modelling
stack & queue
Mapping cardinality (cardinality constraint) in ER MODEL
Class and object in C++
Er diagram
How java differs from c and c++
Abstract data types
Entity Relationship Diagram
Entity Relationship Diagrams
Association agggregation and composition
Data structures and algorithms
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
Entity Relationship design issues
Architecture of operating system
The Relational Database Model
Ad

Similar to Mapping Cardinalities (13)

PPTX
Attribites.pptx related important topic of dbms
PPT
Desigining of Database - ER Model
PPTX
Entity Relationship Diagram
PPTX
Entity relationship model Database Management.pptx
PPT
Dbms ppt
DOCX
Criteria No Submission0 pointsEmerging (F through .docx
PPTX
PPT
Entity Relationship Diagram2
PPT
Data base lec3 (erd)
PPTX
Entity Relationship Diagram – ER Diagram in DBMS.pptx
PPTX
Entity Relationship Diagram – ER Diagram in DBMS.pptx
PPTX
Er model
Attribites.pptx related important topic of dbms
Desigining of Database - ER Model
Entity Relationship Diagram
Entity relationship model Database Management.pptx
Dbms ppt
Criteria No Submission0 pointsEmerging (F through .docx
Entity Relationship Diagram2
Data base lec3 (erd)
Entity Relationship Diagram – ER Diagram in DBMS.pptx
Entity Relationship Diagram – ER Diagram in DBMS.pptx
Er model
Ad

More from Megha Sharma (20)

PPTX
Designing Printed Circuit boards, Software Choices, The Design Process
PPTX
Manufacturing PCB, Etching board, milling board, Third party manufacturing, a...
PPTX
Business Model, make thing, sell thing, subscription, customization, Key Reso...
PPTX
Funding an IOT startup, Venture Capital, Government funding, Crowdfunding, Le...
PPTX
Sketch, Iterate and Explore, Nondigital Methods.
PPTX
CNC Milling, Software, Repurposing and Recycling.
PPTX
3D printing, Types of 3D printing: FDM, Laser Sintering, Powder bed, LOM, DLP.
PPTX
Laser Cutting, Choosing a laser cutter, Software, Hinges and joints.
PPTX
Memory management, Types of memory, Making the most of your RAM.
PPTX
Performance and Battery Life, Libraries, Debugging.
PPTX
Prototyping Embedded Devices: Arduino, Developing on the Arduino.
PPTX
Raspberry-Pi, Developing on Raspberry Pi, Difference between Arduino & Raspbe...
PPTX
Open Source versus Closed Source in IOT in IOT
PPTX
Why closed? Why Open? Mixing open and closed source
PPTX
Model Performance Metrics. Accuracy, Precision, Recall
PPTX
Graceful Degradation and Affordance in IOT
PPTX
Web thinking connected device, Small Pieces Loosely joined.
PPTX
Production & Mass Personalization, Changing Embedded Platform, Physical proto...
PPTX
Whose data is it anyways? Public vs Private data collection.
PPTX
Thinking about Prototyping: Sketching, Familiarity, Cost versus Ease of proto...
Designing Printed Circuit boards, Software Choices, The Design Process
Manufacturing PCB, Etching board, milling board, Third party manufacturing, a...
Business Model, make thing, sell thing, subscription, customization, Key Reso...
Funding an IOT startup, Venture Capital, Government funding, Crowdfunding, Le...
Sketch, Iterate and Explore, Nondigital Methods.
CNC Milling, Software, Repurposing and Recycling.
3D printing, Types of 3D printing: FDM, Laser Sintering, Powder bed, LOM, DLP.
Laser Cutting, Choosing a laser cutter, Software, Hinges and joints.
Memory management, Types of memory, Making the most of your RAM.
Performance and Battery Life, Libraries, Debugging.
Prototyping Embedded Devices: Arduino, Developing on the Arduino.
Raspberry-Pi, Developing on Raspberry Pi, Difference between Arduino & Raspbe...
Open Source versus Closed Source in IOT in IOT
Why closed? Why Open? Mixing open and closed source
Model Performance Metrics. Accuracy, Precision, Recall
Graceful Degradation and Affordance in IOT
Web thinking connected device, Small Pieces Loosely joined.
Production & Mass Personalization, Changing Embedded Platform, Physical proto...
Whose data is it anyways? Public vs Private data collection.
Thinking about Prototyping: Sketching, Familiarity, Cost versus Ease of proto...

Recently uploaded (20)

PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
Computer Architecture Input Output Memory.pptx
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
Empowerment Technology for Senior High School Guide
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
IGGE1 Understanding the Self1234567891011
PPTX
Introduction to Building Materials
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Introduction to pro and eukaryotes and differences.pptx
PPTX
Virtual and Augmented Reality in Current Scenario
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PPTX
20th Century Theater, Methods, History.pptx
PDF
What if we spent less time fighting change, and more time building what’s rig...
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Computer Architecture Input Output Memory.pptx
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Empowerment Technology for Senior High School Guide
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
AI-driven educational solutions for real-life interventions in the Philippine...
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
IGGE1 Understanding the Self1234567891011
Introduction to Building Materials
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Introduction to pro and eukaryotes and differences.pptx
Virtual and Augmented Reality in Current Scenario
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Paper A Mock Exam 9_ Attempt review.pdf.
20th Century Theater, Methods, History.pptx
What if we spent less time fighting change, and more time building what’s rig...

Mapping Cardinalities

  • 2. Mapping Cardinalities / Cardinality Ratio Cardinality defines the number of entities in one entity set, which can be associated with the number of entities of other set via relationship set. Cardinality specifies the maximum number of relationships. For binary relationship set R on an entity set A and B, there are four possible mapping cardinalities. These are as follows: One-to-one (1:1) One-to-many (1:N) Many-to-one (N:1) Many-to-many (M:N)
  • 3. One-to-one One entity from entity set A can be associated with at most one entity of entity set B and vice versa. a1 a2 a3 a4 b1 b2 b3 b4 A B a1 a2 a3 a4 b1 b2 b3 b4 A B
  • 4. One-to-one Examples One citizen has one Aadhar number, and the Aadhar number can only be used by one citizen. Indian citizen Has Aadhaar number 1 1 One student has only one student ID, and each student ID is assigned to only one student. Student Has Student ID
  • 5. One-to-many One entity from entity set A can be associated with more than one entity of entity set B, however an entity from entity set B can be associated with at most one entity from entity set A. a1 a2 a3 a4 b1 b2 b3 b4 A B
  • 6. One-to-many Example Each customer may have more than one telephone number. but each telephone number will be associated to only one customer. Customer Has Telephone Number 1 N Customer Has Telephone Number
  • 7. Many-to-one More than one entities from entity set A can be associated with at most one entity of entity set B, however an entity from entity set B can be associated with more than one entity from entity set A. a1 a2 a3 a4 b1 b2 b3 b4 A B
  • 8. Many-to-one Example N 1 Student Enrolled in Course A student can take only one course, but one course can be taken by many students. So, the cardinality will be N to 1. It means that for one course there can be N students but for one student, there will be only one course. Employee Works in Department
  • 9. Many-to-many One entity from A can be associated with more than one entity from B and vice versa. a1 a2 a3 a4 b1 b2 b3 b4 A B
  • 10. Many-to-many Examples Each customer may place an order for many products, and each product might be ordered by many customers. Customer Places Order Product M N Employee Works On Project An employee may work on multiple projects, and a project may have multiple employees working on it.
  • 12. If you have a question, you can reach me via e-mail at omega.teched@gmail.com Social Media Handles: omega.teched megha_with megha-sharma24 OMega TechEd