Introduction of ER Model
Introduction of ER Model
The Entity Relational Model is a model for identifying entities to be represented in the
database and representation of how those entities are related. The ER data model specifies
enterprise schema that represents the overall logical structure of a database graphically.
The Entity Relationship Diagram explains the relationship among the entities present in the
database. ER models are used to model real-world objects like a person, a car, or a company
and the relation between these real-world objects. In short, the ER Diagram is the structural
format of the database.
Why Use ER Diagrams In DBMS?
1. ER diagrams are used to represent the E-R model in a database, which
makes them easy to convert into relations (tables).
2. ER diagrams provide the purpose of real-world modeling of objects
which makes them intently useful.
3. ER diagrams require no technical knowledge and no hardware support.
4. These diagrams are very easy to understand and easy to create even
for a naive user.
5. It gives a standard solution for visualizing the data logically.
Symbols Used in ER Model
• ER Model is used to model the logical view of the system from a data
perspective which consists of these symbols:
1. Rectangles: Rectangles represent Entities in the ER Model.
2. Ellipses: Ellipses represent Attributes in the ER Model.
3. Diamond: Diamonds represent Relationships among Entities.
4. Lines: Lines represent attributes to entities and entity sets with other
relationship types.
5. Double Ellipse: Double Ellipses represent Multi-Valued Attributes.
6. Double Rectangle: Double Rectangle represents a Weak Entity.
Components of ER Diagram
• Customers Table:
• | CustomerID | Name | Email | Phone |
• |------------ --------- |-------------------- |------------ -|
• |1 | Alice | [email protected] | 123-456-789 |
• |2 | Bob [email protected] | 987-654-321 |
CREATING A E-R DIAGRAM FROM RELATIONAL
SCHEMA.
• Exercise
• Draw an ERD for the following description: Each department has a
unique name, a unique number, and a particular employee who
manages the department. We keep track of the start date when that
employee began managing the department. A department may have
several locations
Specialization