Professional Documents
Culture Documents
Introduction to ER Diagram
Entity: A definable thing such as a person, object, concept or event that can
have data stored about it. Think of entities as nouns. Examples: a customer,
student, car or product. Typically shown as a rectangle.
05313203120 | IT-1
Kushagra Kaushik
Relationship: How entities act upon each other or are associated with each
other. Think of relationships as verbs. For example, the named student might
register for a course. The two entities would be the student and the course, and
the relationship depicted is the act of enrolling, connecting the two entities in
that way. Relationships are typically shown as diamonds or labels directly on
the connecting lines.
05313203120 | IT-1
Kushagra Kaushik
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.
Key Attribute –
The attribute which uniquely identifies each entity in the entity set is
called key attribute. For example, Roll_No will be unique for each student. In
ER diagram, key attribute is represented by an oval with underlying lines.
Composite Attribute –
An attribute composed of many other attribute is called as composite
attribute. For example, Address attribute of student Entity type consists
05313203120 | IT-1
Kushagra Kaushik
of Street, City, State, and Country. In ER diagram, composite attribute is
represented by an oval comprising of ovals.
Multivalued Attribute –
An attribute consisting more than one value for a given entity. For
example, Phone_No (can be more than one for a given student). In ER
diagram, multivalued attribute is represented by double oval.
Derived Attribute –
An attribute which can be derived from other attributes of the entity type
is known as derived attribute. e.g.; Age (can be derived from DOB). In ER
diagram, derived attribute is represented by dashed oval.
05313203120 | IT-1
Kushagra Kaushik
Experiment-2(i)
ER Diagram for Book Management
System
Book –
Member –
Publisher –
Staff -
Supplier -
Borrowed by: It’s a Many to Many relationship between a Member and a book
when a Member issues a book from the library.
Attributes:
Published by: It’s a Many to Many relationship between a Member and a Publisher
when a publisher publishes a book for the member.
Attributes:
Attributes:
Manages: It is a many to many relationship between the staff and the books.
ER Diagram:
05313203120 | IT-1
Kushagra Kaushik