conceptual modeling entity-relationship diagrams
TRANSCRIPT
![Page 1: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/1.jpg)
Conceptual ModelingEntity-Relationship Diagrams
![Page 2: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/2.jpg)
E-R Model Constructs
• Entities• Relationships • Attributes
![Page 3: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/3.jpg)
E-R Model Notation
Entity
Attribute
Many-to-many relationship
One-to-many relationship
![Page 4: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/4.jpg)
Example of Relationship Type
EMPLOYEE COURSE
COMPLETES
A particular employee may complete many courses
A particular course may be completed by many employees
![Page 5: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/5.jpg)
Cardinality Constraints
A cardinality constraint specifies the number of instances that can, or must, participate in a relationship.
![Page 6: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/6.jpg)
Degree of a Relationship
Refers to the number of entity types that participate in the relationship.
• Unary (degree 1)• Binary (degree 2)• Ternary (degree 3)
![Page 7: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/7.jpg)
Binary Relationships
Relationship between the instances of two entity types.
![Page 8: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/8.jpg)
Example of Binary One-to-One Relationship
EMPLOYEE PARKING PLACE
ASSIGNMENT
A particular employee is assigned one parking place
A particular parking place may be assigned to only one employee
![Page 9: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/9.jpg)
Example of Binary One-to-Many Relationship
DEPARTMENT EMPLOYEE
MEMBERSHIP
A particular department consists of many employees
A particular employee belongs to one department
![Page 10: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/10.jpg)
Example of Binary Many-to-Many Relationship
EMPLOYEE COMMITTEE
MEMBERSHIP
A particular employee may belong to many committees
A particular committee consists of many employees
![Page 11: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/11.jpg)
Unary Relationship
• A unary relationship, also called a recursive relationship, is a relationship between the instances of a single entity type.
![Page 12: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/12.jpg)
Example of Unary One-to-One Relationship
PERSON
A particular person may be married to only one other person
MARRIAGE
![Page 13: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/13.jpg)
Example of Unary One-to_Many Relationship
EMPLOYEESUPERVISORY
A particular employee may supervise many employees
A particular employee has only one supervisor
![Page 14: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/14.jpg)
Example of Unary Many-to_Many Relationship
PARTBILL_OF_MATERIAL
A particular part may consist of many component parts
A particular part may be the component for many parts
![Page 15: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/15.jpg)
Ternary Relationship
A ternary relationship is a simultaneous relationship among the instances of three entity types.
![Page 16: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/16.jpg)
Example of Ternary Many-Many-Many Relationship
EMPLOYEE PROJECT
SKILL
SKILLASSIGNMENT
A particular employee may use a particular skill on many projects
In a particular project, a particular skill may be used by many employees
A particular employee working on a particular project may use many skills
![Page 17: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/17.jpg)
Another Example of Ternary Many-Many-Many Relationship
VENDOR WAREHOUSE
PART
SUPPLIES
A particular part , supplied by a particular vendor, may be stored in many warehouses
A particular part, stored in a particular warehouse, may be supplied by many vendors
In a particular warehouse, a particular vendor may supply many parts
![Page 18: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/18.jpg)
INSTRUCTOR COURSE
SEMESTER
TEACHES
Example of Ternary Many-Many-One Relationship
In a particular semester, a particular instructor may teach many courses
A particular instructor may teach a particular course in many semesters
In a particular semester, a particular course is taught by only one instructor
![Page 19: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/19.jpg)
Comparing Notation
DEPARTMENTEMPLOYEEBelongsTo
DEPARTMENTEMPLOYEE
Belongs_to
Consists_of
DEPARTMENTEMPLOYEE
BELONGS_TO
![Page 20: Conceptual Modeling Entity-Relationship Diagrams](https://reader036.vdocuments.mx/reader036/viewer/2022082612/56649dff5503460f94ae7519/html5/thumbnails/20.jpg)
Example of Composite Attribute