SlideShare a Scribd company logo
5
Most read
6
Most read
12
Most read
Conceptual Data Modeling
Using
Entities & Relationships
High Level Conceptual Data Models
• Conceptual Design is a important phase in designing successful database applications
• Entity Relationship Model is the popular high level conceptual data model
• Object Modelling is also gaining the importance – Unified Modelling Language
A Sample Database Application
• Considering Company as a Mini world Problem we need to design the Database.
• Company Database consists of:
 Company Info
 Employee Info
 Project Info
• The Formulated Requirements are:
 The company is organized into departments. Each department has a unique name, a unique number, and a
particular employee who manages the department. We keep track of the start date when that employee
began managing the department. A department may have several location
 A department controls a number of projects, each of which has a unique name, a unique number, and a
single location
 We store each employee’s name, Social Security number, address, salary, sex (gender), and birth date. An
employee is assigned to one department, but may work on several projects, which are not necessarily
controlled by the same department. We keep track of the current number of hours per week that an
employee works on each project. We also keep track of the direct supervisor of each employee (who is
another employee).
 We want to keep track of the dependents of each employee for insurance purposes
A Sample Database Application
Entity Types, Entity Sets, Attributes &
Keys
• Entities and Attributes
 The basic object that the ER model represents is an Entity – Physical or Conceptual Existence
 Each Entity has Attributes – Particular Properties
 Types of Attributes
 Simple Vs Composite
 Single Vs Multi valued
 Stored Vs Derived
 NULL Values
 Composite Attributes
Entity Types, Entity Sets, Attributes &
Keys
• Entity Types, Entity Sets, Keys, and Value Sets
 An entity type defines a collection (or set) of entities that have the same attributes
 The collection of all entities of a particular entity type in the database at any point in
time is called an entity set
• Key Attributes of an Entity Type
 Uniqueness constraint - key attribute
 Weak Entity
• Value Sets of Attribute
• Mathematically, an attribute A of entity set E whose
value set is V can be defined as a function from E to
the power set P(V) of V -- A : E → P(V)
[Entity Set]
Employee
(Name, Age, Salary..)
E1 – [John Smith, 55, 80k]
E2 – [Fred Brown, 50, 60k]
[Entity Set]
Department
(Name, Location, Manager..)
D1 – [Finance, Delhi, John Smith]
D2 – [Sales, Hubballi, Fred Brown]
Conceptual Design of COMPANY
Database
 Department, Project, Employee and Dependents – Entity Types
Relationship Types, Relationship Sets,
Roles and Structural Constraints
 Relationship Types, Sets, and Instances
 A relationship type R among n entity types E1, E2, ..., En defines a set of associations —or a
relationship set
 Mathematically, the relationship set R is a set of relationship instances ri, where each ri
associates n individual entities (e1,e2,...,en)
 Relationship Degree, Role Names, and Recursive Relationships
 Degree of a Relationship Type
 Binary and Ternary Degree
 The degree of a relationship type is the number of
participating entity type
Relationship Types, Relationship Sets,
Roles and Structural Constraints
 Relationship as Attribute
 Role Names and Recursive Relationships
 Cardinality Ratios for Binary Relationships
 Participation Constraints and Existence Dependencies
Weak Entity Types
 The Entity Type that doesn’t have any key attribute - Weak Entity
 Strong Entity Type & Identifying Relationship
 A weak entity type normally has a partial key
 Redefining the ER Diagram – Company Database
 MANAGES, a 1:1 relationship type between EMPLOYEE and DEPARTMENT
 WORKS_FOR, a 1:N relationship type between DEPARTMENT and EMPLOYEE. Both
participations are total
 CONTROLS, a 1:N relationship type between DEPARTMENT and PROJECT
 SUPERVISION, a 1:N relationship type between EMPLOYEE
 WORKS_ON, determined to be an M:N relationship type with attribute Hours
 DEPENDENTS_OF, a 1:N relationship type between EMPLOYEE and DEPENDENT
ER Diagram
Thank You!!!

More Related Content

What's hot (20)

PPTX
Bsc cs ii dfs u-3 tree and graph
Rai University
 
PPTX
EER modeling
Dabbal Singh Mahara
 
PPT
Entity Relationship Diagram
Shakila Mahjabin
 
PPTX
Relational algebra ppt
GirdharRatne
 
PPTX
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
Vraj Patel
 
PPT
08. Object Oriented Database in DBMS
koolkampus
 
PPTX
Relational Database Design
Archit Saxena
 
PPTX
Relational model
Dabbal Singh Mahara
 
DOCX
Behavioural modelling
Benazir Fathima
 
PPTX
Data structure & its types
Rameesha Sadaqat
 
PDF
Advantages and disadvantages of er model in DBMS. Types of database models ..
Nimrakhan89
 
PPTX
3 Level Architecture
Adeel Rasheed
 
PPT
Uml class-diagram
ASHOK KUMAR PALAKI
 
PPTX
Chapter 6 relational data model and relational
Jafar Nesargi
 
PPT
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
ARADHYAYANA
 
PPTX
Chapter 1 1 - intro ppt
NancyBeaulah_R
 
PDF
Enhanced Entity-Relationship (EER) Modeling
sontumax
 
PPT
Database Chapter 3
shahadat hossain
 
PPT
Modern database management jeffrey a. hoffer, mary b. prescott,
BlackIce86
 
Bsc cs ii dfs u-3 tree and graph
Rai University
 
EER modeling
Dabbal Singh Mahara
 
Entity Relationship Diagram
Shakila Mahjabin
 
Relational algebra ppt
GirdharRatne
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
Vraj Patel
 
08. Object Oriented Database in DBMS
koolkampus
 
Relational Database Design
Archit Saxena
 
Relational model
Dabbal Singh Mahara
 
Behavioural modelling
Benazir Fathima
 
Data structure & its types
Rameesha Sadaqat
 
Advantages and disadvantages of er model in DBMS. Types of database models ..
Nimrakhan89
 
3 Level Architecture
Adeel Rasheed
 
Uml class-diagram
ASHOK KUMAR PALAKI
 
Chapter 6 relational data model and relational
Jafar Nesargi
 
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
ARADHYAYANA
 
Chapter 1 1 - intro ppt
NancyBeaulah_R
 
Enhanced Entity-Relationship (EER) Modeling
sontumax
 
Database Chapter 3
shahadat hossain
 
Modern database management jeffrey a. hoffer, mary b. prescott,
BlackIce86
 

Similar to Conceptual Data Modeling (20)

PPSX
Cn presentation on the topic called as re modelling
g30162363
 
PPTX
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Mustafa Kamel Mohammadi
 
PDF
Pokok bahasan #3a er modeling
Slamet Widodo
 
PPTX
Jobs manager vs supervisor.pptx
prosofts1
 
PPTX
DBMS Unit-2_Final.pptx
parimala123
 
PPTX
Revision ch 3
Rupali Rana
 
PPTX
Entityrelationshipmodel
Enes Bolfidan
 
PDF
Lecture 2 database management system.pdf
samerelking3
 
PPTX
Use analyzed requirements in the design of database.pptx
MwangaPrayGod
 
PPTX
SBD 05.pptxffefefeefefeefefefefefefefefe
zulfikrikiki76
 
PPTX
ER MODEL.pptx
TusharSingh711352
 
PPT
DBMS PPT
Prabhu Goyal
 
PPTX
Entity Relationship Model
Slideshare
 
PPTX
The Entity-Relationship Model(ER Diagram).pptx
MANASINANDKISHORDEOR
 
PDF
RDBMS Unit-2.pdf Entity Relationship Diagram
ChaithraCSHirematt
 
PPTX
Entity-Relationship Data Model
Bishrul Haq
 
PPT
Chapter3
Jafar Nesargi
 
PPT
Chapter3
Jafar Nesargi
 
PPT
Database design
FLYMAN TECHNOLOGY LIMITED
 
PDF
ER diagram is created based on three principal components: entities, attribut...
athuathul507
 
Cn presentation on the topic called as re modelling
g30162363
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Mustafa Kamel Mohammadi
 
Pokok bahasan #3a er modeling
Slamet Widodo
 
Jobs manager vs supervisor.pptx
prosofts1
 
DBMS Unit-2_Final.pptx
parimala123
 
Revision ch 3
Rupali Rana
 
Entityrelationshipmodel
Enes Bolfidan
 
Lecture 2 database management system.pdf
samerelking3
 
Use analyzed requirements in the design of database.pptx
MwangaPrayGod
 
SBD 05.pptxffefefeefefeefefefefefefefefe
zulfikrikiki76
 
ER MODEL.pptx
TusharSingh711352
 
DBMS PPT
Prabhu Goyal
 
Entity Relationship Model
Slideshare
 
The Entity-Relationship Model(ER Diagram).pptx
MANASINANDKISHORDEOR
 
RDBMS Unit-2.pdf Entity Relationship Diagram
ChaithraCSHirematt
 
Entity-Relationship Data Model
Bishrul Haq
 
Chapter3
Jafar Nesargi
 
Chapter3
Jafar Nesargi
 
Database design
FLYMAN TECHNOLOGY LIMITED
 
ER diagram is created based on three principal components: entities, attribut...
athuathul507
 
Ad

More from Dr. Thippeswamy S. (19)

PPT
Bacterial Examination of Water of different sources.ppt
Dr. Thippeswamy S.
 
PPTX
Seven QC Tools New approach.pptx
Dr. Thippeswamy S.
 
PPTX
Soil Erosion.pptx
Dr. Thippeswamy S.
 
PPTX
Database Normalization.pptx
Dr. Thippeswamy S.
 
PPTX
cloudapplications.pptx
Dr. Thippeswamy S.
 
PPT
12575474.ppt
Dr. Thippeswamy S.
 
PPTX
djypllh5r1gjbaekxgwv-signature-cc6692615bbc55079760b9b0c6636bc58ec509cd0446cb...
Dr. Thippeswamy S.
 
PPTX
deploymentmodelsofcloudcomputing-230211123637-08174981.pptx
Dr. Thippeswamy S.
 
PPTX
DBMS.pptx
Dr. Thippeswamy S.
 
PPT
Normalization DBMS.ppt
Dr. Thippeswamy S.
 
PPT
Normalization Alg.ppt
Dr. Thippeswamy S.
 
PPTX
introduction to matlab.pptx
Dr. Thippeswamy S.
 
PPT
Introduction to SQL
Dr. Thippeswamy S.
 
PPTX
Chp-1.pptx
Dr. Thippeswamy S.
 
PPTX
Mod-2.pptx
Dr. Thippeswamy S.
 
PPTX
module 5.1.pptx
Dr. Thippeswamy S.
 
PPTX
module 5.pptx
Dr. Thippeswamy S.
 
PPTX
Module 2 (1).pptx
Dr. Thippeswamy S.
 
PDF
23. Journal of Mycology and Plant pathology.pdf
Dr. Thippeswamy S.
 
Bacterial Examination of Water of different sources.ppt
Dr. Thippeswamy S.
 
Seven QC Tools New approach.pptx
Dr. Thippeswamy S.
 
Soil Erosion.pptx
Dr. Thippeswamy S.
 
Database Normalization.pptx
Dr. Thippeswamy S.
 
cloudapplications.pptx
Dr. Thippeswamy S.
 
12575474.ppt
Dr. Thippeswamy S.
 
djypllh5r1gjbaekxgwv-signature-cc6692615bbc55079760b9b0c6636bc58ec509cd0446cb...
Dr. Thippeswamy S.
 
deploymentmodelsofcloudcomputing-230211123637-08174981.pptx
Dr. Thippeswamy S.
 
Normalization DBMS.ppt
Dr. Thippeswamy S.
 
Normalization Alg.ppt
Dr. Thippeswamy S.
 
introduction to matlab.pptx
Dr. Thippeswamy S.
 
Introduction to SQL
Dr. Thippeswamy S.
 
Chp-1.pptx
Dr. Thippeswamy S.
 
Mod-2.pptx
Dr. Thippeswamy S.
 
module 5.1.pptx
Dr. Thippeswamy S.
 
module 5.pptx
Dr. Thippeswamy S.
 
Module 2 (1).pptx
Dr. Thippeswamy S.
 
23. Journal of Mycology and Plant pathology.pdf
Dr. Thippeswamy S.
 
Ad

Recently uploaded (20)

PPTX
UNIT DAA PPT cover all topics 2021 regulation
archu26
 
PPTX
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
PPTX
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
PDF
Statistical Data Analysis Using SPSS Software
shrikrishna kesharwani
 
PDF
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
PPTX
Destructive Tests corrosion engineer (1).pptx
zeidali3
 
PPTX
Hashing Introduction , hash functions and techniques
sailajam21
 
PDF
Water Design_Manual_2005. KENYA FOR WASTER SUPPLY AND SEWERAGE
DancanNgutuku
 
PDF
Zilliz Cloud Demo for performance and scale
Zilliz
 
PPTX
Green Building & Energy Conservation ppt
Sagar Sarangi
 
PPTX
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
PPTX
EC3551-Transmission lines Demo class .pptx
Mahalakshmiprasannag
 
PPTX
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
PPTX
Thermal runway and thermal stability.pptx
godow93766
 
PPTX
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
PDF
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
PPTX
Benefits_^0_Challigi😙🏡💐8fenges[1].pptx
akghostmaker
 
PPTX
site survey architecture student B.arch.
sri02032006
 
PDF
IoT - Unit 2 (Internet of Things-Concepts) - PPT.pdf
dipakraut82
 
PDF
POWER PLANT ENGINEERING (R17A0326).pdf..
haneefachosa123
 
UNIT DAA PPT cover all topics 2021 regulation
archu26
 
Solar Thermal Energy System Seminar.pptx
Gpc Purapuza
 
Break Statement in Programming with 6 Real Examples
manojpoojary2004
 
Statistical Data Analysis Using SPSS Software
shrikrishna kesharwani
 
MAD Unit - 1 Introduction of Android IT Department
JappanMavani
 
Destructive Tests corrosion engineer (1).pptx
zeidali3
 
Hashing Introduction , hash functions and techniques
sailajam21
 
Water Design_Manual_2005. KENYA FOR WASTER SUPPLY AND SEWERAGE
DancanNgutuku
 
Zilliz Cloud Demo for performance and scale
Zilliz
 
Green Building & Energy Conservation ppt
Sagar Sarangi
 
265587293-NFPA 101 Life safety code-PPT-1.pptx
chandermwason
 
EC3551-Transmission lines Demo class .pptx
Mahalakshmiprasannag
 
Types of Bearing_Specifications_PPT.pptx
PranjulAgrahariAkash
 
Thermal runway and thermal stability.pptx
godow93766
 
原版一样(Acadia毕业证书)加拿大阿卡迪亚大学毕业证办理方法
Taqyea
 
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
Benefits_^0_Challigi😙🏡💐8fenges[1].pptx
akghostmaker
 
site survey architecture student B.arch.
sri02032006
 
IoT - Unit 2 (Internet of Things-Concepts) - PPT.pdf
dipakraut82
 
POWER PLANT ENGINEERING (R17A0326).pdf..
haneefachosa123
 

Conceptual Data Modeling

  • 2. High Level Conceptual Data Models • Conceptual Design is a important phase in designing successful database applications • Entity Relationship Model is the popular high level conceptual data model • Object Modelling is also gaining the importance – Unified Modelling Language
  • 3. A Sample Database Application • Considering Company as a Mini world Problem we need to design the Database. • Company Database consists of:  Company Info  Employee Info  Project Info • The Formulated Requirements are:  The company is organized into departments. Each department has a unique name, a unique number, and a particular employee who manages the department. We keep track of the start date when that employee began managing the department. A department may have several location  A department controls a number of projects, each of which has a unique name, a unique number, and a single location  We store each employee’s name, Social Security number, address, salary, sex (gender), and birth date. An employee is assigned to one department, but may work on several projects, which are not necessarily controlled by the same department. We keep track of the current number of hours per week that an employee works on each project. We also keep track of the direct supervisor of each employee (who is another employee).  We want to keep track of the dependents of each employee for insurance purposes
  • 4. A Sample Database Application
  • 5. Entity Types, Entity Sets, Attributes & Keys • Entities and Attributes  The basic object that the ER model represents is an Entity – Physical or Conceptual Existence  Each Entity has Attributes – Particular Properties  Types of Attributes  Simple Vs Composite  Single Vs Multi valued  Stored Vs Derived  NULL Values  Composite Attributes
  • 6. Entity Types, Entity Sets, Attributes & Keys • Entity Types, Entity Sets, Keys, and Value Sets  An entity type defines a collection (or set) of entities that have the same attributes  The collection of all entities of a particular entity type in the database at any point in time is called an entity set • Key Attributes of an Entity Type  Uniqueness constraint - key attribute  Weak Entity • Value Sets of Attribute • Mathematically, an attribute A of entity set E whose value set is V can be defined as a function from E to the power set P(V) of V -- A : E → P(V) [Entity Set] Employee (Name, Age, Salary..) E1 – [John Smith, 55, 80k] E2 – [Fred Brown, 50, 60k] [Entity Set] Department (Name, Location, Manager..) D1 – [Finance, Delhi, John Smith] D2 – [Sales, Hubballi, Fred Brown]
  • 7. Conceptual Design of COMPANY Database  Department, Project, Employee and Dependents – Entity Types
  • 8. Relationship Types, Relationship Sets, Roles and Structural Constraints  Relationship Types, Sets, and Instances  A relationship type R among n entity types E1, E2, ..., En defines a set of associations —or a relationship set  Mathematically, the relationship set R is a set of relationship instances ri, where each ri associates n individual entities (e1,e2,...,en)  Relationship Degree, Role Names, and Recursive Relationships  Degree of a Relationship Type  Binary and Ternary Degree  The degree of a relationship type is the number of participating entity type
  • 9. Relationship Types, Relationship Sets, Roles and Structural Constraints  Relationship as Attribute  Role Names and Recursive Relationships  Cardinality Ratios for Binary Relationships  Participation Constraints and Existence Dependencies
  • 10. Weak Entity Types  The Entity Type that doesn’t have any key attribute - Weak Entity  Strong Entity Type & Identifying Relationship  A weak entity type normally has a partial key  Redefining the ER Diagram – Company Database  MANAGES, a 1:1 relationship type between EMPLOYEE and DEPARTMENT  WORKS_FOR, a 1:N relationship type between DEPARTMENT and EMPLOYEE. Both participations are total  CONTROLS, a 1:N relationship type between DEPARTMENT and PROJECT  SUPERVISION, a 1:N relationship type between EMPLOYEE  WORKS_ON, determined to be an M:N relationship type with attribute Hours  DEPENDENTS_OF, a 1:N relationship type between EMPLOYEE and DEPENDENT