Docsity

Understanding ER Model and Diagram: Entity-Relationship Concepts in Database Architecture, Lecture notes of Database Management Systems (DBMS)

Toggle sidebar
bg1
Database Architecture
ENTITY RELATIONAL (ER) MODEL is a high-level conceptual data model diagram. ER
modelling helps you to analyze data requirements systematically to produce a well-designed
database. The Entity-Relation model represents real-world entities and the relationship
between them.
ER (Entity Relationship) diagrams
ER diagrams are a visual tool which is helpful to represent the ER model.
ENTITY-RELATIONSHIP DIAGRAM (ERD) displays the relationships of entity set
stored in a database. In other words, we can say that ER diagrams help you to explain the
logical structure of databases.
ER Diagram includes many specialized symbols, and its meanings make this model unique.
The purpose of ER Diagram is to represent the entity framework infrastructure.
Why use ER Diagrams?
Helps you to define terms related to entity relationship modelling.
Provide a preview of how all your tables should connect, what fields are going to be
on each table
Helps to describe entities, attributes, relationships
ER diagrams are translatable into relational tables which allows you to build
databases quickly
ER diagrams can be used by database designers as a blueprint for implementing data
in specific software applications
The database designer gains a better understanding of the information to be contained
in the database
ERD is allowed you to communicate with the logical structure of the database to users
pf3
pf4
pf5
pf8

Partial preview of the text

Download Understanding ER Model and Diagram: Entity-Relationship Concepts in Database Architecture and more Lecture notes Database Management Systems (DBMS) in PDF only on Docsity!

Database Architecture ENTITY RELATIONAL (ER) MODEL is a high-level conceptual data model diagram. ER modelling helps you to analyze data requirements systematically to produce a well-designed database. The Entity-Relation model represents real-world entities and the relationship between them.

ER (Entity Relationship) diagrams

ER diagrams are a visual tool which is helpful to represent the ER model. ENTITY-RELATIONSHIP DIAGRAM (ERD) displays the relationships of entity set stored in a database. In other words, we can say that ER diagrams help you to explain the logical structure of databases. ER Diagram includes many specialized symbols, and its meanings make this model unique.

The purpose of ER Diagram is to represent the entity framework infrastructure.

Why use ER Diagrams?  Helps you to define terms related to entity relationship modelling.  Provide a preview of how all your tables should connect, what fields are going to be on each table  Helps to describe entities, attributes, relationships  ER diagrams are translatable into relational tables which allows you to build databases quickly  ER diagrams can be used by database designers as a blueprint for implementing data in specific software applications  The database designer gains a better understanding of the information to be contained in the database  ERD is allowed you to communicate with the logical structure of the database to users

ER- Diagram Notations ER- Diagram is a visual representation of data that describe how data is related to each other.  Rectangles: This symbol represent entity types  Ellipses : Symbol represent attributes  Diamonds: This symbol represents relationship types  Lines: It links attributes to entity types and entity types with other relationship types  Primary key: attributes are underlined  Double Ellipses: Represent multi-valued attributes Components of the ER Diagram This model is based on three basic concepts:  Entities  Attributes  Relationships

Entities

A real-world thing either living or non-living that is easily recognizable and non- recognizable. It is anything in the enterprise that is to be represented in our database. It may be a physical thing or simply a fact about the enterprise or an event that happens in the real world. An entity can be place, person, object, event or a concept, which stores data in the database. The characteristics of entities are must have an attribute, and a unique key. Every entity is made up of some 'attributes' which represent that entity. Eg: Person: Employee, Student, Patient Place: Store, Building Object: Machine, product, and Car Event: Sale, Registration, Renewal Concept: Account, Course

Attributes

It is a single-valued property of either an entity-type or a relationship-type. An attribute is represented by an Ellipse. Eg:, a lecture might have attributes: time, date, duration, place, etc.

Attributes types

Relationship Relationship is nothing but an association among two or more entities. Association Cardinality of Relationship There are many notation styles that express cardinality. Student Course

Cardinality of Relationship

Degree of Relationships