SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Entity Relationship(ER)Entity Relationship(ER)
DiagramDiagram
 An entity-relationship diagram isAn entity-relationship diagram is
aa data modelingdata modeling technique thattechnique that
creates a graphical representation ofcreates a graphical representation of
the entities, and the relationshipsthe entities, and the relationships
between entities, within anbetween entities, within an
information system.information system.
ER-DiagramER-Diagram
Sample ER-DiagramSample ER-Diagram
 An E-R Diagram shows a database’sAn E-R Diagram shows a database’s
entities and the relationships amongentities and the relationships among
the entities in a symbolic, visual way.the entities in a symbolic, visual way.
 Documents a project or application andDocuments a project or application and
serves as its foundationserves as its foundation
 Clarify the system/application’s featuresClarify the system/application’s features
 Provide a basis for evaluatingProvide a basis for evaluating
development optionsdevelopment options
Purpose of ERDs
Entity:Entity:
A class of persons, places, objects, events, orA class of persons, places, objects, events, or
concepts about which we need to capture and storeconcepts about which we need to capture and store
data.data.
 Named by a singular noun.Named by a singular noun.
PersonsPersons: agency, contractor, customer,: agency, contractor, customer,
department, division, employee,department, division, employee,
instructor, student, supplier.instructor, student, supplier.
PlacesPlaces: sales region, building, room,: sales region, building, room,
branch office, campus.branch office, campus.
ObjectsObjects: book, machine, part, product, raw material, software license,: book, machine, part, product, raw material, software license,
software package, tool, vehicle model, vehicle.software package, tool, vehicle model, vehicle.
EventsEvents: application, award, cancellation, class, flight, invoice, order,: application, award, cancellation, class, flight, invoice, order,
registration, renewal, requisition, reservation, sale, trip.registration, renewal, requisition, reservation, sale, trip.
ConceptsConcepts: account, block of time, bond, course, fund, qualification, stock.: account, block of time, bond, course, fund, qualification, stock.
Components of ERD
Relationship:Relationship:
natural business association that exists between one ornatural business association that exists between one or
more entities.more entities.
The relationship may represent an event that links theThe relationship may represent an event that links the
entities or merely a logical affinity that exists between theentities or merely a logical affinity that exists between the
entities.entities.
Components of ERD Contd:
CardinalityCardinality
The minimum and maximum number of occurrences of oneThe minimum and maximum number of occurrences of one
entity that may be related to a single occurrence of the otherentity that may be related to a single occurrence of the other
entity.entity.
Because all relationships are bidirectional, cardinality mustBecause all relationships are bidirectional, cardinality must
be defined in both directions for every relationship.be defined in both directions for every relationship.
Components of ERD
Bidirectional
AttributeAttribute::
A descriptive property orA descriptive property or
characteristic of an entity.characteristic of an entity.
Synonyms includeSynonyms include elementelement,,
propertyproperty, and, and fieldfield..
Just as a physical studentJust as a physical student
can have attributes, such ascan have attributes, such as
hair color, height, etc., datahair color, height, etc., data
entity has data attributesentity has data attributes
Compound attribute:Compound attribute:
 An attribute that consists ofAn attribute that consists of
other attributes. Synonyms inother attributes. Synonyms in
different data modelingdifferent data modeling
languages are numerous:languages are numerous:
concatenated attribute,concatenated attribute,
composite attribute, and datacomposite attribute, and data
structure.structure.
Components of ERD
Cardinality Notations:Cardinality Notations:
Components of ERD
Degree:
The number of entities that participate in the relationship.The number of entities that participate in the relationship.
Components of ERD
Associative entityAssociative entity::
An entity thatAn entity that
inherits primary keyinherits primary key
from more than onefrom more than one
other entity (calledother entity (called
parents).parents).
Components of ERD
Foreign key:Foreign key:
A primary key of an entity that is used in another entity toA primary key of an entity that is used in another entity to
identify instances of a relationship.identify instances of a relationship.
A foreign key is a primary key of one entity that isA foreign key is a primary key of one entity that is
contributed to (duplicated in) another entity to identifycontributed to (duplicated in) another entity to identify
instances of a relationship.instances of a relationship.
A foreign key always matches the primary key in the anotherA foreign key always matches the primary key in the another
entityentity
A foreign key may or may not be unique (generally not)A foreign key may or may not be unique (generally not)
The entity with the foreign key is called the child.The entity with the foreign key is called the child.
The entity with the matching primary key is called theThe entity with the matching primary key is called the
parent.parent.
Components of ERD
Parent entity
A data entity that contributes one or more attributes to
another entity, called the child. In a one-to-many relationship
the parent is the entity on the "one" side.
Child entity
A data entity that derives one or more attributes from
another entity, called the parent. In a one-to-many
relationship the child is the entity on the "many" side.
Components of ERD
The steps involved in creating an ERD are:
Identify the entities.
Determine all significant interactions.
Analyze the nature of the interactions.
Draw the ERD.
ERD Steps
 A good data model is simple.A good data model is simple.
 Data attributes that describe any given entityData attributes that describe any given entity
should describe only that entity.should describe only that entity.
 Each attribute of an entity instance can haveEach attribute of an entity instance can have
only one value.only one value.
 A good data model is essentially non-redundant.A good data model is essentially non-redundant.
 Each data attribute, other than foreign keys,Each data attribute, other than foreign keys,
describes at most one entity.describes at most one entity.
 Look for the same attribute recorded moreLook for the same attribute recorded more
than once under different names.than once under different names.
 A good data model should be flexible andA good data model should be flexible and
adaptable to future needs.adaptable to future needs.
What is a Good Data Model?

Weitere ähnliche Inhalte

Was ist angesagt?

Olap operations
Olap operationsOlap operations
Olap operations
Om Prakash
 
Designing the business process dimensional model
Designing the business process dimensional modelDesigning the business process dimensional model
Designing the business process dimensional model
Gersiton Pila Challco
 
Fundamentals of data mining and its applications
Fundamentals of data mining and its applicationsFundamentals of data mining and its applications
Fundamentals of data mining and its applications
Subrat Swain
 
Database Presentation
Database PresentationDatabase Presentation
Database Presentation
a9oolq8
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbms
Naresh Kumar
 
Erp selection steps
Erp selection stepsErp selection steps
Erp selection steps
anilbele
 

Was ist angesagt? (20)

Dbms Introduction and Basics
Dbms Introduction and BasicsDbms Introduction and Basics
Dbms Introduction and Basics
 
Olap operations
Olap operationsOlap operations
Olap operations
 
Why Data Virtualization? An Introduction
Why Data Virtualization? An IntroductionWhy Data Virtualization? An Introduction
Why Data Virtualization? An Introduction
 
Unit i erp
Unit i erpUnit i erp
Unit i erp
 
Erp ppt
Erp pptErp ppt
Erp ppt
 
Open Government Data (OGD) Platform India for Transparency & Innovation
Open Government Data (OGD) Platform India for Transparency & InnovationOpen Government Data (OGD) Platform India for Transparency & Innovation
Open Government Data (OGD) Platform India for Transparency & Innovation
 
Web mining
Web miningWeb mining
Web mining
 
Codds rules & keys
Codds rules & keysCodds rules & keys
Codds rules & keys
 
Fundamentals of DBMS
Fundamentals of DBMSFundamentals of DBMS
Fundamentals of DBMS
 
Database and types of database
Database and types of databaseDatabase and types of database
Database and types of database
 
Designing the business process dimensional model
Designing the business process dimensional modelDesigning the business process dimensional model
Designing the business process dimensional model
 
Smart manufacturing industry 4.0
Smart manufacturing industry 4.0Smart manufacturing industry 4.0
Smart manufacturing industry 4.0
 
Fundamentals of data mining and its applications
Fundamentals of data mining and its applicationsFundamentals of data mining and its applications
Fundamentals of data mining and its applications
 
Database Presentation
Database PresentationDatabase Presentation
Database Presentation
 
Unit1 DBMS Introduction
Unit1 DBMS IntroductionUnit1 DBMS Introduction
Unit1 DBMS Introduction
 
HL7 Clinical Document Architecture: Overview and Applications
HL7 Clinical Document Architecture: Overview and ApplicationsHL7 Clinical Document Architecture: Overview and Applications
HL7 Clinical Document Architecture: Overview and Applications
 
Slide 2 data models
Slide 2 data modelsSlide 2 data models
Slide 2 data models
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbms
 
Erp selection steps
Erp selection stepsErp selection steps
Erp selection steps
 
The Xuber Portfolio
The Xuber PortfolioThe Xuber Portfolio
The Xuber Portfolio
 

Andere mochten auch

Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
tameemyousaf
 
Er diagram practical examples
Er diagram practical examplesEr diagram practical examples
Er diagram practical examples
Rahul Khanwani
 
How to Draw an Effective ER diagram
How to Draw an Effective ER diagramHow to Draw an Effective ER diagram
How to Draw an Effective ER diagram
Tech_MX
 
Entity Relationship Diagram presentation
Entity Relationship Diagram presentationEntity Relationship Diagram presentation
Entity Relationship Diagram presentation
Sopov Chan
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
koolkampus
 
Example of dfd with answer
Example of dfd with answerExample of dfd with answer
Example of dfd with answer
Mahmoud Bakeer
 

Andere mochten auch (19)

Time manipulation lecture 2
Time manipulation lecture 2Time manipulation lecture 2
Time manipulation lecture 2
 
Entity relationship diagram (erd)
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
 
Er diagram practical examples
Er diagram practical examplesEr diagram practical examples
Er diagram practical examples
 
How to Draw an Effective ER diagram
How to Draw an Effective ER diagramHow to Draw an Effective ER diagram
How to Draw an Effective ER diagram
 
DBMS PPT
DBMS PPTDBMS PPT
DBMS PPT
 
Chap2 practice key
Chap2 practice keyChap2 practice key
Chap2 practice key
 
1869495 er diagrams
1869495 er diagrams1869495 er diagrams
1869495 er diagrams
 
DBMS topics for BCA
DBMS topics for BCADBMS topics for BCA
DBMS topics for BCA
 
Er diagrams presentation
Er diagrams presentationEr diagrams presentation
Er diagrams presentation
 
198970820 p-oooooooooo
198970820 p-oooooooooo198970820 p-oooooooooo
198970820 p-oooooooooo
 
Data model and entity relationship
Data model and entity relationshipData model and entity relationship
Data model and entity relationship
 
Entity relationship diagram
Entity relationship diagramEntity relationship diagram
Entity relationship diagram
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
 
Entity Relationship Diagram presentation
Entity Relationship Diagram presentationEntity Relationship Diagram presentation
Entity Relationship Diagram presentation
 
Erd practice exercises
Erd practice exercisesErd practice exercises
Erd practice exercises
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
 
Example of dfd with answer
Example of dfd with answerExample of dfd with answer
Example of dfd with answer
 
MATERIAL PURCHASING PROCEDURES
MATERIAL PURCHASING PROCEDURESMATERIAL PURCHASING PROCEDURES
MATERIAL PURCHASING PROCEDURES
 

Ähnlich wie PHP mysql Er diagram

Database Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity TypesDatabase Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity Types
aakanksha s
 
1 - Database Management System.pdf
1 - Database Management System.pdf1 - Database Management System.pdf
1 - Database Management System.pdf
gaurav70287
 
D I T211 Chapter 3
D I T211    Chapter 3D I T211    Chapter 3
D I T211 Chapter 3
askme
 
39f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc239f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc2
Mukund Trivedi
 
39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)
Mukund Trivedi
 

Ähnlich wie PHP mysql Er diagram (20)

database.pptx
database.pptxdatabase.pptx
database.pptx
 
Database Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity TypesDatabase Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity Types
 
1 - Database Management System.pdf
1 - Database Management System.pdf1 - Database Management System.pdf
1 - Database Management System.pdf
 
Use analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptxUse analyzed requirements in the design of database.pptx
Use analyzed requirements in the design of database.pptx
 
Unit 2 DBMS
Unit 2 DBMSUnit 2 DBMS
Unit 2 DBMS
 
Er model
Er modelEr model
Er model
 
Dbms ppt
Dbms pptDbms ppt
Dbms ppt
 
ER Modelling
ER ModellingER Modelling
ER Modelling
 
D I T211 Chapter 3
D I T211    Chapter 3D I T211    Chapter 3
D I T211 Chapter 3
 
DBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptxDBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptx
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
 
Dbms
DbmsDbms
Dbms
 
Database Management System
Database Management System Database Management System
Database Management System
 
ER MODEL
ER MODELER MODEL
ER MODEL
 
Erd chapter 3
Erd chapter 3Erd chapter 3
Erd chapter 3
 
database
databasedatabase
database
 
Entity relation(1)
Entity relation(1)Entity relation(1)
Entity relation(1)
 
Chapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptxChapter 2. Concepctual design -.pptx
Chapter 2. Concepctual design -.pptx
 
39f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc239f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc2
 
39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)
 

Mehr von Mudasir Syed

Mehr von Mudasir Syed (20)

Error reporting in php
Error reporting in php Error reporting in php
Error reporting in php
 
Cookies in php lecture 2
Cookies in php  lecture  2Cookies in php  lecture  2
Cookies in php lecture 2
 
Cookies in php lecture 1
Cookies in php lecture 1Cookies in php lecture 1
Cookies in php lecture 1
 
Ajax
Ajax Ajax
Ajax
 
Reporting using FPDF
Reporting using FPDFReporting using FPDF
Reporting using FPDF
 
Oop in php lecture 2
Oop in  php lecture 2Oop in  php lecture 2
Oop in php lecture 2
 
Oop in php lecture 2
Oop in  php lecture 2Oop in  php lecture 2
Oop in php lecture 2
 
Filing system in PHP
Filing system in PHPFiling system in PHP
Filing system in PHP
 
Time manipulation lecture 1
Time manipulation lecture 1 Time manipulation lecture 1
Time manipulation lecture 1
 
Php Mysql
Php Mysql Php Mysql
Php Mysql
 
Adminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdminAdminstrating Through PHPMyAdmin
Adminstrating Through PHPMyAdmin
 
Sql select
Sql select Sql select
Sql select
 
PHP mysql Sql
PHP mysql  SqlPHP mysql  Sql
PHP mysql Sql
 
PHP mysql Mysql joins
PHP mysql  Mysql joinsPHP mysql  Mysql joins
PHP mysql Mysql joins
 
PHP mysql Introduction database
 PHP mysql  Introduction database PHP mysql  Introduction database
PHP mysql Introduction database
 
PHP mysql Installing my sql 5.1
PHP mysql  Installing my sql 5.1PHP mysql  Installing my sql 5.1
PHP mysql Installing my sql 5.1
 
PHP mysql Database normalizatin
PHP mysql  Database normalizatinPHP mysql  Database normalizatin
PHP mysql Database normalizatin
 
PHP mysql Aggregate functions
PHP mysql Aggregate functionsPHP mysql Aggregate functions
PHP mysql Aggregate functions
 
Form validation with built in functions
Form validation with built in functions Form validation with built in functions
Form validation with built in functions
 
Form validation server side
Form validation server side Form validation server side
Form validation server side
 

Kürzlich hochgeladen

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Kürzlich hochgeladen (20)

2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 

PHP mysql Er diagram

  • 1.
  • 3.  An entity-relationship diagram isAn entity-relationship diagram is aa data modelingdata modeling technique thattechnique that creates a graphical representation ofcreates a graphical representation of the entities, and the relationshipsthe entities, and the relationships between entities, within anbetween entities, within an information system.information system. ER-DiagramER-Diagram
  • 5.  An E-R Diagram shows a database’sAn E-R Diagram shows a database’s entities and the relationships amongentities and the relationships among the entities in a symbolic, visual way.the entities in a symbolic, visual way.  Documents a project or application andDocuments a project or application and serves as its foundationserves as its foundation  Clarify the system/application’s featuresClarify the system/application’s features  Provide a basis for evaluatingProvide a basis for evaluating development optionsdevelopment options Purpose of ERDs
  • 6. Entity:Entity: A class of persons, places, objects, events, orA class of persons, places, objects, events, or concepts about which we need to capture and storeconcepts about which we need to capture and store data.data.  Named by a singular noun.Named by a singular noun. PersonsPersons: agency, contractor, customer,: agency, contractor, customer, department, division, employee,department, division, employee, instructor, student, supplier.instructor, student, supplier. PlacesPlaces: sales region, building, room,: sales region, building, room, branch office, campus.branch office, campus. ObjectsObjects: book, machine, part, product, raw material, software license,: book, machine, part, product, raw material, software license, software package, tool, vehicle model, vehicle.software package, tool, vehicle model, vehicle. EventsEvents: application, award, cancellation, class, flight, invoice, order,: application, award, cancellation, class, flight, invoice, order, registration, renewal, requisition, reservation, sale, trip.registration, renewal, requisition, reservation, sale, trip. ConceptsConcepts: account, block of time, bond, course, fund, qualification, stock.: account, block of time, bond, course, fund, qualification, stock. Components of ERD
  • 7. Relationship:Relationship: natural business association that exists between one ornatural business association that exists between one or more entities.more entities. The relationship may represent an event that links theThe relationship may represent an event that links the entities or merely a logical affinity that exists between theentities or merely a logical affinity that exists between the entities.entities. Components of ERD Contd:
  • 8. CardinalityCardinality The minimum and maximum number of occurrences of oneThe minimum and maximum number of occurrences of one entity that may be related to a single occurrence of the otherentity that may be related to a single occurrence of the other entity.entity. Because all relationships are bidirectional, cardinality mustBecause all relationships are bidirectional, cardinality must be defined in both directions for every relationship.be defined in both directions for every relationship. Components of ERD Bidirectional
  • 9. AttributeAttribute:: A descriptive property orA descriptive property or characteristic of an entity.characteristic of an entity. Synonyms includeSynonyms include elementelement,, propertyproperty, and, and fieldfield.. Just as a physical studentJust as a physical student can have attributes, such ascan have attributes, such as hair color, height, etc., datahair color, height, etc., data entity has data attributesentity has data attributes Compound attribute:Compound attribute:  An attribute that consists ofAn attribute that consists of other attributes. Synonyms inother attributes. Synonyms in different data modelingdifferent data modeling languages are numerous:languages are numerous: concatenated attribute,concatenated attribute, composite attribute, and datacomposite attribute, and data structure.structure. Components of ERD
  • 11. Degree: The number of entities that participate in the relationship.The number of entities that participate in the relationship. Components of ERD
  • 12. Associative entityAssociative entity:: An entity thatAn entity that inherits primary keyinherits primary key from more than onefrom more than one other entity (calledother entity (called parents).parents). Components of ERD
  • 13. Foreign key:Foreign key: A primary key of an entity that is used in another entity toA primary key of an entity that is used in another entity to identify instances of a relationship.identify instances of a relationship. A foreign key is a primary key of one entity that isA foreign key is a primary key of one entity that is contributed to (duplicated in) another entity to identifycontributed to (duplicated in) another entity to identify instances of a relationship.instances of a relationship. A foreign key always matches the primary key in the anotherA foreign key always matches the primary key in the another entityentity A foreign key may or may not be unique (generally not)A foreign key may or may not be unique (generally not) The entity with the foreign key is called the child.The entity with the foreign key is called the child. The entity with the matching primary key is called theThe entity with the matching primary key is called the parent.parent. Components of ERD
  • 14. Parent entity A data entity that contributes one or more attributes to another entity, called the child. In a one-to-many relationship the parent is the entity on the "one" side. Child entity A data entity that derives one or more attributes from another entity, called the parent. In a one-to-many relationship the child is the entity on the "many" side. Components of ERD
  • 15. The steps involved in creating an ERD are: Identify the entities. Determine all significant interactions. Analyze the nature of the interactions. Draw the ERD. ERD Steps
  • 16.  A good data model is simple.A good data model is simple.  Data attributes that describe any given entityData attributes that describe any given entity should describe only that entity.should describe only that entity.  Each attribute of an entity instance can haveEach attribute of an entity instance can have only one value.only one value.  A good data model is essentially non-redundant.A good data model is essentially non-redundant.  Each data attribute, other than foreign keys,Each data attribute, other than foreign keys, describes at most one entity.describes at most one entity.  Look for the same attribute recorded moreLook for the same attribute recorded more than once under different names.than once under different names.  A good data model should be flexible andA good data model should be flexible and adaptable to future needs.adaptable to future needs. What is a Good Data Model?