SlideShare une entreprise Scribd logo
1  sur  22
Télécharger pour lire hors ligne
ER MODELING
Contents
  An Introduction
  Entities & Relationships
  Building an Entity-Relationship model
  Attributes and Identifiers
  Cardinality, Degree, Existence of
  Relationships
Life-Cycle
n   Requirements
    n   specification of customer/user needs/desires
n   Design
    n   specification of potential solution or solution
        approach
n   Implementation
    n   providing the solution
n   Test Results
    n   evaluations, inferences, reports, documentation
n   Modifications
    n   changes/additions to solution
E-R Model (Peter Chen, 1976)
n   Diagrammatic
n   Simple but expressive
n   Easy to map into traditional DBMS
    models
n   Extensions
    n   Extended ER Model
    n   Entity Category Relationship Model
    n   Enhanced ER Model
The Conceptual Model
 Conceptual model captures the global/
 institutional view of the data semantics.
 It investigates and enumerates the various
 entities that participate in the business
 environment being modelled.
E-R Modeling
 Entity-Relationship (E-R) Modeling is a
 conceptual modeling tool.
 perceives the business environment in terms of
 participating “entities” and the “relationship”
 between them.
 e.g. many employees work for a department.

                      works_
  EMPLOYEE                      DEPARTMENT
                      for
     entity      relationship      entity
Entity
 is a “data object”
 models some object/entity in the real-world;
 entity type represents the set of all similar
 objects.
 identified by the nouns in the requirements
 specification.
 must have a name that is unique across the
 entire model and has a consistent meaning
 across the modelling team and the end users.
Attributes
  characteristics/properties of an entity, that
  provide descriptive details of it.
  every attribute must be given a name that is
  unique across the entity (distinct entities may
  have attributes with the same name).
  attribute names are also subject to the same
  rules that govern entity names (consistent
  meaning, documentation, etc..)
Types of Attributes
n   Simple and composite
n   Single-valued and multivalued
n   Null
n   Derived
Simple and Composite
                Attributes
n   Simple Attribute: An attribute composed of a
    single component with an independent
    existence. E.g position and salary of the Staff
    entity.
n   Composite Attribute: An attribute composed
    of multiple components, each with an
    independent existence. E.g adress attribute of
    the branch entity that can be subdivided into
    street, city and postcode attributes.
Single-Valued and Multi-
         Valued Attributes
n   Single-Valued Attribute: An attribute that
    holds a single valuefor each occurrence of an
    entity type. E.g branchNo.
n   Multi-Valued Attributes: An attribute that
    holds multiple values for each occurrence of
    an entity type. E.g telephoneNo.
Derived Attributes
n   Derived Attributes: An attribute that
    represents a value that is derivable from the
    value of a related attribute or set of
    attributes, not necessarily in the same entity
    type.
     n E.g attribute duration which value is

       derived from the rentStart and rentFinish
       attributes.
Relationship
models the real-world association between two
or more entities (binary, n-ary relationship).
A relationship can be optional or mandatory
“degree” is the number of entity sets involved in
the relationship.   typically 2 (binary); other
common degrees are 1 (recursive) and 3 (ternary).
Relationship:Mapping Cardinality
“Cardinality” indicates the entity
occurrences (instances) participating in a
relationship.
takes values “one” or “many”.
e.g. a one:many relationship indicates that for
every
    occurrence of one entity, there are many
related instances of the other entity.
                    works_
 EMPLOYEE                    DEPARTMENT
                    for
One-to-One (1:1)



          Staff                                      Branch
                           Manages
staffNo                1..1          0..1      branchNo




“Each branch is managed by                  “A member of staff can
                                            manage zero or one branch”
One member of the staff”
One-to-Many (1:*)


          Staff                                      PropertyForRent
                              Oversees
staffNo                  0..1            0..*      propertyNo




“Each properity for rent is                     “Each member of staff
overseen by zero or one                         oversees zero or more
member of staff”                                properitys for rent”
Many-to-Many (*:*)

    Newspaper                                          PropertyForRent
                              Advertises
newspaperName           0..*               1..*      propertyNo




“Each properity for rent is                       “Each newspaper advertises
advertised in zero or more                        one or more properties for
newspapers”                                       rent”
Building the ER Model
the requirements specification is the first step to
any design; it captures the ‘what’ of the business
environment.
also documents the “business rules” - i.e., the
constraints that will apply to your database.
e.g. every department must have a manager;
     and only one manager.

the ER model must capture the participating
entities as well as these business rules.
Entity : Categorisation
 Fundamental/strong entity
     an entity that is capable of its “own
    existence” - i.e. an entity whose instances
    exist notwithstanding the existence of other
    entities.
 Weak Entities
 Associative Entities
Entity types : Weak
 an entity that is not capable of “its own
 existence”.
 characterised by the need to have at least
 one external identifier (of another entity)
 as part of its own identifier.
 e.g. consider “ payment” and “ pmt_items”
    “ pmt_items” cannot exist without a
 corresponding
     “ payment” instance. “pmt_id” of “ payment”
     will be part of the identifier of “ pmt_items”
Entity types : Associative

 a relationship translates into migration of a key
 - many:many relationship implies the keys
 migrating many times, both ways.
 such migration leads to redundancy and
 many:many relationships must therefore be
 resolved.
 “Associative entity” is an entity that is used to
 resolve a many:many relationship.
Summary
 Entities & Relationships
 Building an Entity-Relationship model
 Attributes and Identifiers
 Cardinality, Degree, Existence of
 Relationships

Contenu connexe

Tendances

Desigining of Database - ER Model
Desigining of Database - ER ModelDesigining of Database - ER Model
Desigining of Database - ER ModelAjay Chhimpa
 
Data modeling using the entity relationship model
Data modeling using the entity relationship modelData modeling using the entity relationship model
Data modeling using the entity relationship modelJafar Nesargi
 
03 Ch3 Notes Revised
03 Ch3 Notes Revised03 Ch3 Notes Revised
03 Ch3 Notes Revisedguest6f408c
 
Database Systems - Entity Relationship Modeling (Chapter 4/2)
Database Systems - Entity Relationship Modeling (Chapter 4/2)Database Systems - Entity Relationship Modeling (Chapter 4/2)
Database Systems - Entity Relationship Modeling (Chapter 4/2)Vidyasagar Mundroy
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMSkoolkampus
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship ModellingBhandari Nawaraj
 
The entity relationship model
The entity relationship modelThe entity relationship model
The entity relationship modelyash patel
 
Entity Relationship Diagram2
Entity Relationship Diagram2Entity Relationship Diagram2
Entity Relationship Diagram2sadeenedian08
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship ModelSlideshare
 
Design issues with constraints of E-R model
Design issues with constraints of E-R modelDesign issues with constraints of E-R model
Design issues with constraints of E-R modelPaurav Shah
 
Entity relationship diagram
Entity relationship diagramEntity relationship diagram
Entity relationship diagramHaseeb
 

Tendances (19)

Desigining of Database - ER Model
Desigining of Database - ER ModelDesigining of Database - ER Model
Desigining of Database - ER Model
 
enhanced er diagram
enhanced er diagramenhanced er diagram
enhanced er diagram
 
Data model and entity relationship
Data model and entity relationshipData model and entity relationship
Data model and entity relationship
 
Unit02 dbms
Unit02 dbmsUnit02 dbms
Unit02 dbms
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
 
Data modeling using the entity relationship model
Data modeling using the entity relationship modelData modeling using the entity relationship model
Data modeling using the entity relationship model
 
03 Ch3 Notes Revised
03 Ch3 Notes Revised03 Ch3 Notes Revised
03 Ch3 Notes Revised
 
10287 lecture5(2)
10287 lecture5(2)10287 lecture5(2)
10287 lecture5(2)
 
Database Systems - Entity Relationship Modeling (Chapter 4/2)
Database Systems - Entity Relationship Modeling (Chapter 4/2)Database Systems - Entity Relationship Modeling (Chapter 4/2)
Database Systems - Entity Relationship Modeling (Chapter 4/2)
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship Modelling
 
The entity relationship model
The entity relationship modelThe entity relationship model
The entity relationship model
 
Entity Relationship Diagram2
Entity Relationship Diagram2Entity Relationship Diagram2
Entity Relationship Diagram2
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 
Design issues with constraints of E-R model
Design issues with constraints of E-R modelDesign issues with constraints of E-R model
Design issues with constraints of E-R model
 
Entity relationship diagram
Entity relationship diagramEntity relationship diagram
Entity relationship diagram
 
dbms
dbmsdbms
dbms
 
ER MODEL
ER MODELER MODEL
ER MODEL
 
dbms er model
dbms er modeldbms er model
dbms er model
 

En vedette

Database Design Process
Database Design ProcessDatabase Design Process
Database Design Processmussawir20
 
7. Relational Database Design in DBMS
7. Relational Database Design in DBMS7. Relational Database Design in DBMS
7. Relational Database Design in DBMSkoolkampus
 
An Introduction To Software Development - Architecture & Detailed Design
An Introduction To Software Development - Architecture & Detailed DesignAn Introduction To Software Development - Architecture & Detailed Design
An Introduction To Software Development - Architecture & Detailed DesignBlue Elephant Consulting
 
Database 3 Conceptual Modeling And Er
Database 3   Conceptual Modeling And ErDatabase 3   Conceptual Modeling And Er
Database 3 Conceptual Modeling And ErAshwani Kumar Ramani
 
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...Mustafa Kamel Mohammadi
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalizationdaxesh chauhan
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in DatabaseRoshni Singh
 
Importance of database design (1)
Importance of database design (1)Importance of database design (1)
Importance of database design (1)yhen06
 
Presentation to NCCA Computer Science Seminar. Dublin Castle, Ireland. 21st F...
Presentation to NCCA Computer Science Seminar. Dublin Castle, Ireland. 21st F...Presentation to NCCA Computer Science Seminar. Dublin Castle, Ireland. 21st F...
Presentation to NCCA Computer Science Seminar. Dublin Castle, Ireland. 21st F...Neil Keane
 
Functional dependencies and normalization for relational databases
Functional dependencies and normalization for relational databasesFunctional dependencies and normalization for relational databases
Functional dependencies and normalization for relational databasesJafar Nesargi
 
Intro to Database Design
Intro to Database DesignIntro to Database Design
Intro to Database DesignSondra Willhite
 
Database design process
Database design processDatabase design process
Database design processTayyab Hameed
 
Er diagram practical examples
Er diagram practical examplesEr diagram practical examples
Er diagram practical examplesRahul Khanwani
 
Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1ahfiki
 

En vedette (20)

Ch 3 E R Model
Ch 3  E R  ModelCh 3  E R  Model
Ch 3 E R Model
 
Database Design Process
Database Design ProcessDatabase Design Process
Database Design Process
 
7. Relational Database Design in DBMS
7. Relational Database Design in DBMS7. Relational Database Design in DBMS
7. Relational Database Design in DBMS
 
Sql introduction
Sql introductionSql introduction
Sql introduction
 
An Introduction To Software Development - Architecture & Detailed Design
An Introduction To Software Development - Architecture & Detailed DesignAn Introduction To Software Development - Architecture & Detailed Design
An Introduction To Software Development - Architecture & Detailed Design
 
Database 3 Conceptual Modeling And Er
Database 3   Conceptual Modeling And ErDatabase 3   Conceptual Modeling And Er
Database 3 Conceptual Modeling And Er
 
database design process
database design processdatabase design process
database design process
 
Database design
Database designDatabase design
Database design
 
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...
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalization
 
Database design
Database designDatabase design
Database design
 
Normalization in Database
Normalization in DatabaseNormalization in Database
Normalization in Database
 
Importance of database design (1)
Importance of database design (1)Importance of database design (1)
Importance of database design (1)
 
Presentation to NCCA Computer Science Seminar. Dublin Castle, Ireland. 21st F...
Presentation to NCCA Computer Science Seminar. Dublin Castle, Ireland. 21st F...Presentation to NCCA Computer Science Seminar. Dublin Castle, Ireland. 21st F...
Presentation to NCCA Computer Science Seminar. Dublin Castle, Ireland. 21st F...
 
Functional dependencies and normalization for relational databases
Functional dependencies and normalization for relational databasesFunctional dependencies and normalization for relational databases
Functional dependencies and normalization for relational databases
 
Intro to Database Design
Intro to Database DesignIntro to Database Design
Intro to Database Design
 
Database design process
Database design processDatabase design process
Database design process
 
Er diagram practical examples
Er diagram practical examplesEr diagram practical examples
Er diagram practical examples
 
Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 

Similaire à ER Modelling

Similaire à ER Modelling (20)

ECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptxECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptx
 
PHP mysql Er diagram
PHP mysql  Er diagramPHP mysql  Er diagram
PHP mysql Er diagram
 
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)
 
Entity-Relationship Data Model
Entity-Relationship Data ModelEntity-Relationship Data Model
Entity-Relationship Data Model
 
database1
database1database1
database1
 
database.pptx
database.pptxdatabase.pptx
database.pptx
 
ERD with complete knowledge
ERD with complete knowledgeERD with complete knowledge
ERD with complete knowledge
 
Unit 2 DBMS
Unit 2 DBMSUnit 2 DBMS
Unit 2 DBMS
 
Dbms ppt
Dbms pptDbms ppt
Dbms ppt
 
Database Modeling
Database ModelingDatabase Modeling
Database Modeling
 
E R Model details.ppt
E R Model details.pptE R Model details.ppt
E R Model details.ppt
 
Er Modeling
Er ModelingEr Modeling
Er Modeling
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 
Jobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptxJobs manager vs supervisor.pptx
Jobs manager vs supervisor.pptx
 
Conceptual Modeling of Data
Conceptual Modeling of DataConceptual Modeling of Data
Conceptual Modeling of Data
 
Chap08
Chap08Chap08
Chap08
 
Chapter2
Chapter2Chapter2
Chapter2
 
Entityrelationshipmodel
EntityrelationshipmodelEntityrelationshipmodel
Entityrelationshipmodel
 
03 data modeling 1
03   data modeling 103   data modeling 1
03 data modeling 1
 

Plus de lubna19

Concurrency Conrol
Concurrency ConrolConcurrency Conrol
Concurrency Conrollubna19
 
Programming in Oracle with PL/SQL
Programming in Oracle with PL/SQLProgramming in Oracle with PL/SQL
Programming in Oracle with PL/SQLlubna19
 
Normalization and Codd's Rule
Normalization and Codd's Rule Normalization and Codd's Rule
Normalization and Codd's Rule lubna19
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to databaselubna19
 
Security and Integrity
Security and IntegritySecurity and Integrity
Security and Integritylubna19
 

Plus de lubna19 (6)

Concurrency Conrol
Concurrency ConrolConcurrency Conrol
Concurrency Conrol
 
9
99
9
 
Programming in Oracle with PL/SQL
Programming in Oracle with PL/SQLProgramming in Oracle with PL/SQL
Programming in Oracle with PL/SQL
 
Normalization and Codd's Rule
Normalization and Codd's Rule Normalization and Codd's Rule
Normalization and Codd's Rule
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 
Security and Integrity
Security and IntegritySecurity and Integrity
Security and Integrity
 

Dernier

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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 

Dernier (20)

TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 

ER Modelling

  • 2. Contents An Introduction Entities & Relationships Building an Entity-Relationship model Attributes and Identifiers Cardinality, Degree, Existence of Relationships
  • 3. Life-Cycle n Requirements n specification of customer/user needs/desires n Design n specification of potential solution or solution approach n Implementation n providing the solution n Test Results n evaluations, inferences, reports, documentation n Modifications n changes/additions to solution
  • 4. E-R Model (Peter Chen, 1976) n Diagrammatic n Simple but expressive n Easy to map into traditional DBMS models n Extensions n Extended ER Model n Entity Category Relationship Model n Enhanced ER Model
  • 5. The Conceptual Model Conceptual model captures the global/ institutional view of the data semantics. It investigates and enumerates the various entities that participate in the business environment being modelled.
  • 6. E-R Modeling Entity-Relationship (E-R) Modeling is a conceptual modeling tool. perceives the business environment in terms of participating “entities” and the “relationship” between them. e.g. many employees work for a department. works_ EMPLOYEE DEPARTMENT for entity relationship entity
  • 7. Entity is a “data object” models some object/entity in the real-world; entity type represents the set of all similar objects. identified by the nouns in the requirements specification. must have a name that is unique across the entire model and has a consistent meaning across the modelling team and the end users.
  • 8. Attributes characteristics/properties of an entity, that provide descriptive details of it. every attribute must be given a name that is unique across the entity (distinct entities may have attributes with the same name). attribute names are also subject to the same rules that govern entity names (consistent meaning, documentation, etc..)
  • 9. Types of Attributes n Simple and composite n Single-valued and multivalued n Null n Derived
  • 10. Simple and Composite Attributes n Simple Attribute: An attribute composed of a single component with an independent existence. E.g position and salary of the Staff entity. n Composite Attribute: An attribute composed of multiple components, each with an independent existence. E.g adress attribute of the branch entity that can be subdivided into street, city and postcode attributes.
  • 11. Single-Valued and Multi- Valued Attributes n Single-Valued Attribute: An attribute that holds a single valuefor each occurrence of an entity type. E.g branchNo. n Multi-Valued Attributes: An attribute that holds multiple values for each occurrence of an entity type. E.g telephoneNo.
  • 12. Derived Attributes n Derived Attributes: An attribute that represents a value that is derivable from the value of a related attribute or set of attributes, not necessarily in the same entity type. n E.g attribute duration which value is derived from the rentStart and rentFinish attributes.
  • 13. Relationship models the real-world association between two or more entities (binary, n-ary relationship). A relationship can be optional or mandatory “degree” is the number of entity sets involved in the relationship. typically 2 (binary); other common degrees are 1 (recursive) and 3 (ternary).
  • 14. Relationship:Mapping Cardinality “Cardinality” indicates the entity occurrences (instances) participating in a relationship. takes values “one” or “many”. e.g. a one:many relationship indicates that for every occurrence of one entity, there are many related instances of the other entity. works_ EMPLOYEE DEPARTMENT for
  • 15. One-to-One (1:1) Staff Branch Manages staffNo 1..1 0..1 branchNo “Each branch is managed by “A member of staff can manage zero or one branch” One member of the staff”
  • 16. One-to-Many (1:*) Staff PropertyForRent Oversees staffNo 0..1 0..* propertyNo “Each properity for rent is “Each member of staff overseen by zero or one oversees zero or more member of staff” properitys for rent”
  • 17. Many-to-Many (*:*) Newspaper PropertyForRent Advertises newspaperName 0..* 1..* propertyNo “Each properity for rent is “Each newspaper advertises advertised in zero or more one or more properties for newspapers” rent”
  • 18. Building the ER Model the requirements specification is the first step to any design; it captures the ‘what’ of the business environment. also documents the “business rules” - i.e., the constraints that will apply to your database. e.g. every department must have a manager; and only one manager. the ER model must capture the participating entities as well as these business rules.
  • 19. Entity : Categorisation Fundamental/strong entity an entity that is capable of its “own existence” - i.e. an entity whose instances exist notwithstanding the existence of other entities. Weak Entities Associative Entities
  • 20. Entity types : Weak an entity that is not capable of “its own existence”. characterised by the need to have at least one external identifier (of another entity) as part of its own identifier. e.g. consider “ payment” and “ pmt_items” “ pmt_items” cannot exist without a corresponding “ payment” instance. “pmt_id” of “ payment” will be part of the identifier of “ pmt_items”
  • 21. Entity types : Associative a relationship translates into migration of a key - many:many relationship implies the keys migrating many times, both ways. such migration leads to redundancy and many:many relationships must therefore be resolved. “Associative entity” is an entity that is used to resolve a many:many relationship.
  • 22. Summary Entities & Relationships Building an Entity-Relationship model Attributes and Identifiers Cardinality, Degree, Existence of Relationships