Home >>DBMS Tutorial >DBMS ER Diagram Representation
Let us now learn how an ER diagram is used to represent the ER Model. Using an ER diagram, any object, such as entities, attributes of an entity, relationship sets, and attributes of relationship sets, can be represented.
Entity
By means of rectangles, entities are represented. Rectangles are named according to the set of entities they represent.
Attributes
Attributes are entities' properties. By means of ellipses, attributes are represented. Each ellipse represents one attribute and is connected to its entity (rectangle) directly.
They are further divided into a tree like structure if the attributes are composite. Then every node is connected to its attribute. That is, ellipses that are connected with an ellipse are represented by composite attributes.
Multivalued attributes are depicted by double ellipse.
Derived attributes are depicted by dashed ellipse.
Relationships are represented by a box shaped like a diamond. In the diamond-box, the name of the relationship is written. All the entities (rectangles) that participate in a relationship are connected by a line to it.
Binary Relationship and Cardinality
A relationship is called a binary relationship where two people are involved. Cardinality is the number of instances of an entity in a relation that can be related to the relation.