0% found this document useful (0 votes)
402 views21 pages

ER Diagram Presentation

The document provides an overview of entity relationship diagrams (ERDs) including what they are, their key components, and guidelines for creating them. ERDs are a graphical representation of an entity-relationship data model that shows entities, attributes, and relationships. Entities represent real-world objects or concepts, attributes are properties of entities, and relationships depict associations between entities. The document outlines unary, binary, and ternary relationship types and discusses naming conventions and cardinalities. Examples are provided throughout to illustrate ERD components and concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
402 views21 pages

ER Diagram Presentation

The document provides an overview of entity relationship diagrams (ERDs) including what they are, their key components, and guidelines for creating them. ERDs are a graphical representation of an entity-relationship data model that shows entities, attributes, and relationships. Entities represent real-world objects or concepts, attributes are properties of entities, and relationships depict associations between entities. The document outlines unary, binary, and ternary relationship types and discusses naming conventions and cardinalities. Examples are provided throughout to illustrate ERD components and concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 21

PRESENTATION

TOPIC:-

PRESENTING BY:- SUMAN SAURABH


ROLL NO.- 1683910045
EmailId:[email protected]
Outline:
 What Entity relationship diagrams (ERD) are.
 What Entities in an ERD are?
 What Attributes in an ERD are?
 What Relationships in an ERD are?
ERM and ERD
 Entity-Relationship Data Model (ERM) is a
detailed, logical representation of the data for an
organization or for a business area.
 Expressed in terms of:
 Entities
 Attributes
 Relationships
 Entity-Relationship Diagram (ERD) is a
graphical representation of a Entity-Relationship
Model.
ERD
 The purpose of an ERD is to capture the richest
possible understanding of the meaning of data
necessary for an information system or organization.

 ERDs are made from Entities, Attributes, and


Relations.
University Entity-Relationship Diagram
Entity
 What is an Entity?
 Has its own identity that distinguishes it from other
entities.
 Examples:
 Person: PROFESSOR, STUDENT
 Place: STORE, UNIVERSITY
 Object: MACHINE, BUILDING
 Event: SALE, REGISTRATION
 Concept: ACCOUNT, COURSE
Entity
(Entity Type vs. Entity Instances)
 Entity Type is a collection of entities that share common properties
or characteristics.

STUDENT CLASS PROFESSOR

 Entity Instance is a single occurrence of an entity type.

STUDENT

 Entities should always be placed in a rectangle!


University Entity-Relationship Diagram

Entity
Attributes
 Each Entity has a set of Attributes
 Attribute is a property or characteristic of an entity
that is of interest to the organization.
 Example:
 STUDENT: Student_ID, Student_Name, Phone_Number,
Major
Attributes

Student

Student_ID
Student_Address
Student_Phone
Attributes
 Candidate Key = is an attribute that uniquely
identifies each instance of an entity type.
 Identifier = A candidate key that has been selected as
the unique, identifying characteristic of an entity type.
(Should be underlined).
 Other types of Attributes: multivalued, required,
optional, composite, and derived.
Criteria for Selecting Attributes
 Choose a candidate key that will not change its value.
 Choose a candidate key that has valid values and not
be null.
Relationships
 Relationships are associations between one or more
entity types.
 Are the “glue” that holds together components of an
E-R model.
 The degree of a relationship = is the number of
entity types that participate in a relationship.
 There are 3 common relationships:
1. Unary (degree one)
2. binary (degree two)
3. Ternary (degree three)
University Entity-Relationship Diagram

Relationship
Relationships
(Naming Guidelines)

 A relationship name should:


 Be a verb phrase, such as Is_assigned_to.
 Avoid vague names, such as “Has”.
Unary Relationship
 Relationship between the instances of one entity type.

Is_married_to Manages

EMPLOYEE
PERSON

One-to-one One-to-many
Binary Relationship
 Relationship between the instances of two entity type.

Is_assigned Contains
PARKING
EMPLOYEE PRODUCT
SPACE PRODUCTS
LINE

One-to-One One-to-Many

Can also have many to many!


Ternary Relationship
 A simultaneous relationship among instances of three
entity types.

PART

VENDOR WAREHOUSE
Supplies
Relationship Cardinalities
 Mandatory Cardinalities = The entity must
participate in another entity.
 Optional Cardinalities = The entity has a the option
to participate in another entity.
Questions or Comments over
ERD?
THANKS TO EVERYONE

You might also like