Professional Documents
Culture Documents
1. Set aside other tasks that will disturb you while enjoying the lesson.
2. Take your time in reading the content. You can download this file for
your future reference.
3. Have your notebook beside you, so that you can write important details
on it
4. Ask your parents/ guardian to assist you in using this Learning Material.
An E-R model is usually the result of systematic analysis to define and describe what is
important to processes in an area of a business. It does not define the business
processes; it only presents a business data schema in graphical form. It is usually
drawn in a graphical form as boxes (entities) that are connected by lines (relationships)
which express the associations and dependencies between entities. An ER model can
also be expressed in a verbal form, for example: one building may be divided into zero
or more apartments, but one apartment can only be located in one building.
An entity–relationship model (or ER model) describes interrelated things of interest in a
specific domain of knowledge. A basic ER model is composed of entity types (which
classify the things of interest) and specifies relationships that can exist
between entities (instances of those entity types).
Conceptual data model
This is the highest level ER model in that it contains the least granular detail but
establishes the overall scope of what is to be included within the model set.
So, when do we draw ERDs? While ER models are mostly developed for designing
relational databases in terms of concept visualization and in terms of physical
database design, there are still other situations when ER diagrams can help. Here are
some typical use cases.
Database design - Depending on the scale of change, it can be risky to alter a
database structure directly in a DBMS. To avoid ruining the data in a production
database, it is important to plan out the changes carefully.
Database debugging - To debug database issues can be challenging, especially when
the database contains many tables, which require writing complex SQL in getting the
information you need.
Database creation and patching - Visual Paradigm, an ERD tool, supports a database
generation tool that can automate the database creation and patching process by
means of ER diagrams.
Aid in requirements gathering - Determine the requirements of an information system
by drawing a conceptual ERD that depicts the high-level business objects of the
system.
Common Entity Relationship Diagram Symbols
An ER diagram is a means of visualizing how the information a system produces is related. There
are five main components of an ERD:
Entities which are represented by rectangles. An entity is an object or concept about which you
want to store information.
A weak entity is an entity that must defined by a foreign key relationship with another entity as
it cannot be uniquely identified by its own attributes alone.
Actions, which are represented by diamond shapes, show how two entities share information in
the database.
In some cases, entities can be self-linked. For example, employees can supervise other
employees.
Attributes, which are represented by ovals. A key attribute is the unique, distinguishing
characteristic of the entity. For example, an employee's social security number might be the
employee's key attribute.
A multivalued attribute can have more than one value. For example, an employee entity can
have multiple skill values.
A derived attribute is based on another attribute. For example, an employee's monthly salary is
based on the employee's annual salary.
Connecting lines, solid lines that connect attributes to show the relationships of
entities in the diagram.
Cardinality specifies how many instances of an entity relate to one instance of
another entity. Ordinality is also closely linked to cardinality. While cardinality
specifies the occurrences of a relationship, ordinality describes the relationship
as either mandatory or optional. In other words, cardinality specifies the
maximum number of relationships and ordinality specifies the absolute
minimum number of relationships.
Binary Relationship and Cardinality
Many-to-one: When more than one instance of entity is associated with the
relationship, it is marked as 'N:1'. The following image reflects that more than one
instance of an entity on the left and only one instance of an entity on the right can
be associated with the relationship. It depicts many-to-one relationship.
Many-to-many: The following image reflects that more than one instance of an
entity on the left and more than one instance of an entity on the right can be
associated with the relationship. It depicts many-to-many relationship.
Participation Constraints
Web Reference:
https://www.visual-paradigm.com/guide/data-modeling/what-is-entity-relationship-diagram/
https://en.wikipedia.org/wiki/Entity%E2%80%93relationship_model
https://youtu.be/dUJp0Yoq5eg