SlideShare une entreprise Scribd logo
1  sur  18
Subject Name Code Credit Hours
Database System COMP 219 3
Chapter IV
Subject Name Code Credit Hours
Database System COMP 219 3
Data Models
• A collection of tools for describing
– Data
– Data relationships
– Data semantics
– Data constraints
• Relational model
• Entity-Relationship data model (mainly for database design)
• Object-based data models (Object-oriented and Object-relational)
• Semistructured data model (XML)
• Other older models:
– Network model
– Hierarchical model
Subject Name Code Credit Hours
Database System COMP 219 3
Data Models
• A collection of Conceptual tools for describing
– Data
– Data relationships
– Data semantics
– Data constraints
• Different data Models
• - Relational model
- Entity-Relationship data model (Conceptual Model-mainly for database design)
- Object-based data models (Object-oriented and Object-relational)
- Semi structured data model (XML)
• Other older models:
– Network model
– Hierarchical model
A Data model is a set of concepts that can be used to
describe the structure of the db.
Subject Name Code Credit Hours
Database System COMP 219 3
Entity-Relationship data model
• It is a high level conceptual data model that describes the structure of db
in terms of entities, relationship among entities & constraints on them..
• Basic Concepts of E-R Model:
- Entity
- Entity Set
- Attributes
- Relationship
- Relationship set
- Identifying Relationship
I
Subject Name Code Credit Hours
Database System COMP 219 3
Entity-Relationship data model
• Entity:
-It is a an object that exists in the real world.
• Example:
- Person, Employee, Car, Home etc..
Object with conceptual Existence
- Account, loan, job etc…
Subject Name Code Credit Hours
Database System COMP 219 3
Entity-Relationship data model
• Entity Set:
- A set of entities of the same type.
• Attributes:
- A set of properties that describe an
entity.
Subject Name Code Credit Hours
Database System COMP 219 3
• Types of Attributes:
• Simple (or) atomic vs. Composite:
• - An attribute which cant be sub divided. (Eg.Age)
• - An attribute which can be divided into sub parts is called
• as composite attribute.
e.g.. Address- Apartment no.
- Street
- Place
- City
- District
Single Valued vs. Multivalued:
• -An attribute having only one value (e.g.. Age,eid,sno)
• - An attribute having multiple values (e.g.. Deptlocat- A dept can be located in
several places)
Entity-Relationship data model
Subject Name Code Credit Hours
Database System COMP 219 3
Entity-Relationship data model
• Stored Vs Derived
• - Stored attribute is one that has some value where as
derived attribute is a one where its value is derived from sa.
• -E.g.. SA-DOB
• DA- Age derived from DOB.
• Key Attribute:
• - An attribute which is used to uniquely identify records.
• E.g.. eid, sno, dno
Subject Name Code Credit Hours
Database System COMP 219 3
Entity-Relationship data model
• Relationship:
• - It is an association among several
entities. It specifies what type of relationship
exists between entities.
Subject Name Code Credit Hours
Database System COMP 219 3
• Relationship set:
• - It is a set of relationships of the same type.
Entity-Relationship data model
1 AA 1000
2 BB 2000
100 FFF 10000
1 AA AC
2 BB AD
100 FFF SD
Entity
E
N
TI
T
Y
S
E
T
DEPT. ENTITY TYPERelationship SetEmp.. ENTITY TYPE
Subject Name Code Credit Hours
Database System COMP 219 3
• Weak Entity Set:
• - No key attributes.
• Identifying Relationship:
• - The relationship associated with the weak
entity type
Entity-Relationship data model
Subject Name Code Credit Hours
Database System COMP 219 3
Constraints
• Two of the most important constraints are
• a. Mapping Constraints
• b. Participation constraints
»Participation constraints
Total Participation Partial Participation
Subject Name Code Credit Hours
Database System COMP 219 3
a. Mapping Cardinalities:
Mapping Cardinalities OR CARDINALITY RATIOS, EXPRESSS THE NUMBER OF
ENTITIES TO WHICH ANOTHER ENTITY CAN BE ASSOCIATED VIA A
RELATIONSHIPSET.
• Several types of Mapping Cardinalities. They are,
• a.i. One-to-One
• An entity in set A is associated with at most one entity in set B and
vice versa.
e1
e2
e3
d1
d2
d3
Employee Dept.Works for
Subject Name Code Credit Hours
Database System COMP 219 3
• a.i. One-to-many
• An entity in set A is associated with zero or more
no. of entities in set B and an entity in B is associated with
at most one entity in A.
a. Mapping Cardinalities:
e1
e2
e3
d1
d2
d3
Employee Dept.Works for
Subject Name Code Credit Hours
Database System COMP 219 3
a. Mapping Cardinalities:
 a.i. Many-to-One
 One or more no. of entities in set A is associated with at
most one entity in B. An entity in B can be associated with any no.
of entities in A.
e1
e2
e3
e4
d1
d2
d3
Employee Dept.Works for
Subject Name Code Credit Hours
Database System COMP 219 3
• a.i. Many-to-Many
• One or more no. of entities in set A
is associated with one or more no. of
entities in set B.
a. Mapping Cardinalities:
e1
e2
e3
e4
d1
d2
d3
Employee Dept.Works for
Subject Name Code Credit Hours
Database System COMP 219 3
• The participation of an entity set E in a relationship set R is
said to be total if every entity in E participates in atleast one
relationship in R.
b. Participation Constraints:
Total Participation
Partial Participation:
The participation of an entity set E in a relationship set R is said to be
partial if only a few of the entities in E participated in relationship in R.
Subject Name Code Credit Hours
Database System COMP 219 3
b. Participation Constraints:
• E.G..
Partial participation Total participation
Employee
Dept.
Manages

Contenu connexe

En vedette

Bhavendra_CV (3)
Bhavendra_CV (3)Bhavendra_CV (3)
Bhavendra_CV (3)Dhaval Soni
 
Magnetek A011989
Magnetek A011989Magnetek A011989
Magnetek A011989savomir
 
Linkers note
Linkers noteLinkers note
Linkers notedutor
 
Accenture-Playing-To-Win-Realigning-CIO-CMO-Disconnect-China
Accenture-Playing-To-Win-Realigning-CIO-CMO-Disconnect-ChinaAccenture-Playing-To-Win-Realigning-CIO-CMO-Disconnect-China
Accenture-Playing-To-Win-Realigning-CIO-CMO-Disconnect-ChinaJason Chau
 
Como crear una cuenta en wikipedia
Como crear una cuenta en wikipediaComo crear una cuenta en wikipedia
Como crear una cuenta en wikipediaJulian Sánchez
 
Lessons from Class Recording & Publishing of Eight Online Courses
Lessons from Class Recording & Publishing of Eight Online CoursesLessons from Class Recording & Publishing of Eight Online Courses
Lessons from Class Recording & Publishing of Eight Online CoursesMustafa Jarrar
 
Commscope-Andrew C240-JMSM-65
Commscope-Andrew C240-JMSM-65Commscope-Andrew C240-JMSM-65
Commscope-Andrew C240-JMSM-65savomir
 
Multimedia presentation of primary school teachers Tarasevich Inna Osipovna
Multimedia presentation of primary school teachers Tarasevich Inna OsipovnaMultimedia presentation of primary school teachers Tarasevich Inna Osipovna
Multimedia presentation of primary school teachers Tarasevich Inna OsipovnaИнна Тарасевич
 
Introduce CPQ & CPS - AdLatte
Introduce CPQ & CPS - AdLatteIntroduce CPQ & CPS - AdLatte
Introduce CPQ & CPS - AdLatteGmarkcorp
 
IDA - Fra forretningside til bundlinie: Eclipse følger dig hele vejen
IDA - Fra forretningside til bundlinie: Eclipse følger dig hele vejenIDA - Fra forretningside til bundlinie: Eclipse følger dig hele vejen
IDA - Fra forretningside til bundlinie: Eclipse følger dig hele vejenTonny Madsen
 
Murder at the Vicarage
Murder at the VicarageMurder at the Vicarage
Murder at the VicarageKariCrummey
 
Brochure AgustaWestland AW159
Brochure AgustaWestland AW159Brochure AgustaWestland AW159
Brochure AgustaWestland AW159Leonardo
 

En vedette (17)

Bhavendra_CV (3)
Bhavendra_CV (3)Bhavendra_CV (3)
Bhavendra_CV (3)
 
Magnetek A011989
Magnetek A011989Magnetek A011989
Magnetek A011989
 
Linkers note
Linkers noteLinkers note
Linkers note
 
Accenture-Playing-To-Win-Realigning-CIO-CMO-Disconnect-China
Accenture-Playing-To-Win-Realigning-CIO-CMO-Disconnect-ChinaAccenture-Playing-To-Win-Realigning-CIO-CMO-Disconnect-China
Accenture-Playing-To-Win-Realigning-CIO-CMO-Disconnect-China
 
Como crear una cuenta en wikipedia
Como crear una cuenta en wikipediaComo crear una cuenta en wikipedia
Como crear una cuenta en wikipedia
 
tt9-16s54-56tv_osto
tt9-16s54-56tv_ostott9-16s54-56tv_osto
tt9-16s54-56tv_osto
 
Lessons from Class Recording & Publishing of Eight Online Courses
Lessons from Class Recording & Publishing of Eight Online CoursesLessons from Class Recording & Publishing of Eight Online Courses
Lessons from Class Recording & Publishing of Eight Online Courses
 
Accommodation[1]
Accommodation[1]Accommodation[1]
Accommodation[1]
 
problem of water
problem of waterproblem of water
problem of water
 
Ferrante ppt2
Ferrante ppt2Ferrante ppt2
Ferrante ppt2
 
Commscope-Andrew C240-JMSM-65
Commscope-Andrew C240-JMSM-65Commscope-Andrew C240-JMSM-65
Commscope-Andrew C240-JMSM-65
 
Multimedia presentation of primary school teachers Tarasevich Inna Osipovna
Multimedia presentation of primary school teachers Tarasevich Inna OsipovnaMultimedia presentation of primary school teachers Tarasevich Inna Osipovna
Multimedia presentation of primary school teachers Tarasevich Inna Osipovna
 
Introduce CPQ & CPS - AdLatte
Introduce CPQ & CPS - AdLatteIntroduce CPQ & CPS - AdLatte
Introduce CPQ & CPS - AdLatte
 
IDA - Fra forretningside til bundlinie: Eclipse følger dig hele vejen
IDA - Fra forretningside til bundlinie: Eclipse følger dig hele vejenIDA - Fra forretningside til bundlinie: Eclipse følger dig hele vejen
IDA - Fra forretningside til bundlinie: Eclipse følger dig hele vejen
 
Murder at the Vicarage
Murder at the VicarageMurder at the Vicarage
Murder at the Vicarage
 
Brochure AgustaWestland AW159
Brochure AgustaWestland AW159Brochure AgustaWestland AW159
Brochure AgustaWestland AW159
 
Lesson level ! of English
Lesson level ! of EnglishLesson level ! of English
Lesson level ! of English
 

Similaire à Conceptual Data Models and Entity Relationship Model

DATA MODEL PRESENTATION UNIT I-BCA I.pptx
DATA MODEL PRESENTATION UNIT I-BCA I.pptxDATA MODEL PRESENTATION UNIT I-BCA I.pptx
DATA MODEL PRESENTATION UNIT I-BCA I.pptxJasmineMichael1
 
Database.ppt
Database.pptDatabase.ppt
Database.pptFaimHasan
 
DBMS & Data Models - In Introduction
DBMS & Data Models - In IntroductionDBMS & Data Models - In Introduction
DBMS & Data Models - In IntroductionRajeev Srivastava
 
Entityrelationshipmodel
EntityrelationshipmodelEntityrelationshipmodel
EntityrelationshipmodelEnes Bolfidan
 
Introduction to Database Management Systems
Introduction to Database Management Systems Introduction to Database Management Systems
Introduction to Database Management Systems Reem Sherif
 
Common Data Model - A Business Database!
Common Data Model - A Business Database!Common Data Model - A Business Database!
Common Data Model - A Business Database!Pedro Azevedo
 
Common Data Service – A Business Database!
Common Data Service – A Business Database!Common Data Service – A Business Database!
Common Data Service – A Business Database!Pedro Azevedo
 
Summary data modelling
Summary data modellingSummary data modelling
Summary data modellingNovita Sari
 
Cn presentation on the topic called as re modelling
Cn presentation on the topic called as re modellingCn presentation on the topic called as re modelling
Cn presentation on the topic called as re modellingg30162363
 
Chapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfChapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfTamiratDejene1
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship ModelSlideshare
 

Similaire à Conceptual Data Models and Entity Relationship Model (20)

DBMS Class 3
DBMS Class 3DBMS Class 3
DBMS Class 3
 
Revision ch 3
Revision ch 3Revision ch 3
Revision ch 3
 
DATA MODEL PRESENTATION UNIT I-BCA I.pptx
DATA MODEL PRESENTATION UNIT I-BCA I.pptxDATA MODEL PRESENTATION UNIT I-BCA I.pptx
DATA MODEL PRESENTATION UNIT I-BCA I.pptx
 
Dmbs chapter vi
Dmbs chapter viDmbs chapter vi
Dmbs chapter vi
 
relational database
relational databaserelational database
relational database
 
Database.ppt
Database.pptDatabase.ppt
Database.ppt
 
DBMS & Data Models - In Introduction
DBMS & Data Models - In IntroductionDBMS & Data Models - In Introduction
DBMS & Data Models - In Introduction
 
Entityrelationshipmodel
EntityrelationshipmodelEntityrelationshipmodel
Entityrelationshipmodel
 
ER modeling
ER modelingER modeling
ER modeling
 
Sachin noire 2024
Sachin noire 2024Sachin noire 2024
Sachin noire 2024
 
Introduction to Database Management Systems
Introduction to Database Management Systems Introduction to Database Management Systems
Introduction to Database Management Systems
 
Common Data Model - A Business Database!
Common Data Model - A Business Database!Common Data Model - A Business Database!
Common Data Model - A Business Database!
 
Common Data Service – A Business Database!
Common Data Service – A Business Database!Common Data Service – A Business Database!
Common Data Service – A Business Database!
 
Summary data modelling
Summary data modellingSummary data modelling
Summary data modelling
 
Cn presentation on the topic called as re modelling
Cn presentation on the topic called as re modellingCn presentation on the topic called as re modelling
Cn presentation on the topic called as re modelling
 
Chapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfChapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdf
 
DBMS
DBMS DBMS
DBMS
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 
Datastage database design and data modeling ppt 4
Datastage database design and data modeling ppt 4Datastage database design and data modeling ppt 4
Datastage database design and data modeling ppt 4
 
er-models.pptx
er-models.pptxer-models.pptx
er-models.pptx
 

Plus de Bala Ganesh

Dbms chapter iii
Dbms chapter iiiDbms chapter iii
Dbms chapter iiiBala Ganesh
 
Flip flop& RAM ROM
Flip flop& RAM ROMFlip flop& RAM ROM
Flip flop& RAM ROMBala Ganesh
 
Chap iii-Logic Gates
Chap iii-Logic GatesChap iii-Logic Gates
Chap iii-Logic GatesBala Ganesh
 
Chap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeChap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeBala Ganesh
 
Software engineering Questions and Answers
Software engineering Questions and AnswersSoftware engineering Questions and Answers
Software engineering Questions and AnswersBala Ganesh
 
Software testing
Software testingSoftware testing
Software testingBala Ganesh
 
Software Requirements
Software RequirementsSoftware Requirements
Software RequirementsBala Ganesh
 
Comp 111chp iv vi
Comp 111chp iv viComp 111chp iv vi
Comp 111chp iv viBala Ganesh
 
Comp 107cep iii,iv,v
Comp 107cep iii,iv,vComp 107cep iii,iv,v
Comp 107cep iii,iv,vBala Ganesh
 
Wdf 222chp iii vi
Wdf 222chp iii viWdf 222chp iii vi
Wdf 222chp iii viBala Ganesh
 

Plus de Bala Ganesh (20)

Dbms chapter iii
Dbms chapter iiiDbms chapter iii
Dbms chapter iii
 
Dbms chapter ii
Dbms chapter iiDbms chapter ii
Dbms chapter ii
 
Flip flop& RAM ROM
Flip flop& RAM ROMFlip flop& RAM ROM
Flip flop& RAM ROM
 
karnaugh maps
karnaugh mapskarnaugh maps
karnaugh maps
 
Chap iii-Logic Gates
Chap iii-Logic GatesChap iii-Logic Gates
Chap iii-Logic Gates
 
Chap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeChap ii.BCD code,Gray code
Chap ii.BCD code,Gray code
 
DEL-244Chep i
DEL-244Chep iDEL-244Chep i
DEL-244Chep i
 
Software engineering Questions and Answers
Software engineering Questions and AnswersSoftware engineering Questions and Answers
Software engineering Questions and Answers
 
Software testing
Software testingSoftware testing
Software testing
 
Design
DesignDesign
Design
 
Comp 107 cep 8
Comp 107 cep 8Comp 107 cep 8
Comp 107 cep 8
 
Comp 107 cep 7
Comp 107 cep 7Comp 107 cep 7
Comp 107 cep 7
 
Cocomo model
Cocomo modelCocomo model
Cocomo model
 
Software Requirements
Software RequirementsSoftware Requirements
Software Requirements
 
Comp107 chep6
Comp107 chep6Comp107 chep6
Comp107 chep6
 
Comp 111chp iv vi
Comp 111chp iv viComp 111chp iv vi
Comp 111chp iv vi
 
Comp 111 cep ii
Comp 111 cep iiComp 111 cep ii
Comp 111 cep ii
 
Comp 107cep iii,iv,v
Comp 107cep iii,iv,vComp 107cep iii,iv,v
Comp 107cep iii,iv,v
 
Wdf 222chp iii vi
Wdf 222chp iii viWdf 222chp iii vi
Wdf 222chp iii vi
 
Wdf222 cep ii
Wdf222 cep iiWdf222 cep ii
Wdf222 cep ii
 

Dernier

Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 

Dernier (20)

Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 

Conceptual Data Models and Entity Relationship Model

  • 1. Subject Name Code Credit Hours Database System COMP 219 3 Chapter IV
  • 2. Subject Name Code Credit Hours Database System COMP 219 3 Data Models • A collection of tools for describing – Data – Data relationships – Data semantics – Data constraints • Relational model • Entity-Relationship data model (mainly for database design) • Object-based data models (Object-oriented and Object-relational) • Semistructured data model (XML) • Other older models: – Network model – Hierarchical model
  • 3. Subject Name Code Credit Hours Database System COMP 219 3 Data Models • A collection of Conceptual tools for describing – Data – Data relationships – Data semantics – Data constraints • Different data Models • - Relational model - Entity-Relationship data model (Conceptual Model-mainly for database design) - Object-based data models (Object-oriented and Object-relational) - Semi structured data model (XML) • Other older models: – Network model – Hierarchical model A Data model is a set of concepts that can be used to describe the structure of the db.
  • 4. Subject Name Code Credit Hours Database System COMP 219 3 Entity-Relationship data model • It is a high level conceptual data model that describes the structure of db in terms of entities, relationship among entities & constraints on them.. • Basic Concepts of E-R Model: - Entity - Entity Set - Attributes - Relationship - Relationship set - Identifying Relationship I
  • 5. Subject Name Code Credit Hours Database System COMP 219 3 Entity-Relationship data model • Entity: -It is a an object that exists in the real world. • Example: - Person, Employee, Car, Home etc.. Object with conceptual Existence - Account, loan, job etc…
  • 6. Subject Name Code Credit Hours Database System COMP 219 3 Entity-Relationship data model • Entity Set: - A set of entities of the same type. • Attributes: - A set of properties that describe an entity.
  • 7. Subject Name Code Credit Hours Database System COMP 219 3 • Types of Attributes: • Simple (or) atomic vs. Composite: • - An attribute which cant be sub divided. (Eg.Age) • - An attribute which can be divided into sub parts is called • as composite attribute. e.g.. Address- Apartment no. - Street - Place - City - District Single Valued vs. Multivalued: • -An attribute having only one value (e.g.. Age,eid,sno) • - An attribute having multiple values (e.g.. Deptlocat- A dept can be located in several places) Entity-Relationship data model
  • 8. Subject Name Code Credit Hours Database System COMP 219 3 Entity-Relationship data model • Stored Vs Derived • - Stored attribute is one that has some value where as derived attribute is a one where its value is derived from sa. • -E.g.. SA-DOB • DA- Age derived from DOB. • Key Attribute: • - An attribute which is used to uniquely identify records. • E.g.. eid, sno, dno
  • 9. Subject Name Code Credit Hours Database System COMP 219 3 Entity-Relationship data model • Relationship: • - It is an association among several entities. It specifies what type of relationship exists between entities.
  • 10. Subject Name Code Credit Hours Database System COMP 219 3 • Relationship set: • - It is a set of relationships of the same type. Entity-Relationship data model 1 AA 1000 2 BB 2000 100 FFF 10000 1 AA AC 2 BB AD 100 FFF SD Entity E N TI T Y S E T DEPT. ENTITY TYPERelationship SetEmp.. ENTITY TYPE
  • 11. Subject Name Code Credit Hours Database System COMP 219 3 • Weak Entity Set: • - No key attributes. • Identifying Relationship: • - The relationship associated with the weak entity type Entity-Relationship data model
  • 12. Subject Name Code Credit Hours Database System COMP 219 3 Constraints • Two of the most important constraints are • a. Mapping Constraints • b. Participation constraints »Participation constraints Total Participation Partial Participation
  • 13. Subject Name Code Credit Hours Database System COMP 219 3 a. Mapping Cardinalities: Mapping Cardinalities OR CARDINALITY RATIOS, EXPRESSS THE NUMBER OF ENTITIES TO WHICH ANOTHER ENTITY CAN BE ASSOCIATED VIA A RELATIONSHIPSET. • Several types of Mapping Cardinalities. They are, • a.i. One-to-One • An entity in set A is associated with at most one entity in set B and vice versa. e1 e2 e3 d1 d2 d3 Employee Dept.Works for
  • 14. Subject Name Code Credit Hours Database System COMP 219 3 • a.i. One-to-many • An entity in set A is associated with zero or more no. of entities in set B and an entity in B is associated with at most one entity in A. a. Mapping Cardinalities: e1 e2 e3 d1 d2 d3 Employee Dept.Works for
  • 15. Subject Name Code Credit Hours Database System COMP 219 3 a. Mapping Cardinalities:  a.i. Many-to-One  One or more no. of entities in set A is associated with at most one entity in B. An entity in B can be associated with any no. of entities in A. e1 e2 e3 e4 d1 d2 d3 Employee Dept.Works for
  • 16. Subject Name Code Credit Hours Database System COMP 219 3 • a.i. Many-to-Many • One or more no. of entities in set A is associated with one or more no. of entities in set B. a. Mapping Cardinalities: e1 e2 e3 e4 d1 d2 d3 Employee Dept.Works for
  • 17. Subject Name Code Credit Hours Database System COMP 219 3 • The participation of an entity set E in a relationship set R is said to be total if every entity in E participates in atleast one relationship in R. b. Participation Constraints: Total Participation Partial Participation: The participation of an entity set E in a relationship set R is said to be partial if only a few of the entities in E participated in relationship in R.
  • 18. Subject Name Code Credit Hours Database System COMP 219 3 b. Participation Constraints: • E.G.. Partial participation Total participation Employee Dept. Manages