Professional Documents
Culture Documents
Er Model Cab PPT GRP 15
Er Model Cab PPT GRP 15
I. Entity relationship model is also known as ER model and it is a high level model.
II. This method is used to define the data elements and relationship for a specified
system.
III. It develops a conceptual design for the database.
IV. In ER modeling, the database structure is portrayed as a diagram called an entity-
relationship diagram.
V. It is a non-technical method, which is free from ambiguities .
VI. It provides a standard and a logical way of visualizing the data.
ELEMENTS OF ER MODEL
ENTITY
• An entity is an object or component of data. An entity is
represented as rectangle in an ER diagram
• In an ER-diagram, an entity is represented as rectangles.
• For example: In the following ER diagram we have two
entities Student and College and these two entities have
many to one relationship as many students study in a single
college.
SIMPLE ATTRIBUTE
MULTI VALUED
COMPOSITE ATTRIBUTE
DERIVED
SINGLE VALUED
KEY ATTRIBUTE
KEY ATTRIBUTE
• A key attribute can uniquely identify an entity from an entity set. For
example, student roll number can uniquely identify a student from a
set of students. Key attribute is represented by oval same as other
attributes
ROLL NO NAME
AGE
STUDENT
SINGLE VS COMPOSITE
ATTRIBUTE
• A simple attribute cannot be subdivided. – examples - Age, Gender,
and Marital status.
• A composite attribute can be further subdivided to yield additional
attributes. – examples – address, street, city, state, zip, house number.
PIN
STATE
STUDENT ADDRESS
COUNTRY
DERIVED ATTRIBUTE
• Derived attribute is not physically stored within the database instead,
it is derived by using an algorithm.
PLACED
CUSTOMER ORDER
MANY TO ONE RELATIONSHIP
• When more than one instances of an entity is associated with a single
instance of another entity then it is called many to one relationship.
For example – many students can study in a single college but a
student cannot study in many colleges at the same time.
STUD
STUDENT Y COLLEGE
MANY TO MANY RELATIONSHIP
• When more than one instances of an entity is associated with more
than one instances of another entity then it is called many to many
relationship. For example, a can be assigned to many projects and a
project can be assigned to many students.