SlideShare a Scribd company logo
E-R MODEL
FEATURES OF E-R MODEL
• ER Model is a high-level conceptual data model.
• It allows us to describe the data involved in a real-world enterprise in term of objects
and their relationships.
• It is widely used to develop an initial design of a database.
• It provides a set of useful concepts that make it convenient for a developer to move
from a basic set of information to a detailed and precise description of information
that can be easily implemented in a database system.
• It describes data as a collection of entities , relationships and attributes.
Example -:
College is a database keeps track of Students ,faculty , departments and courses organized
by various departments. College contains various departments like Department of English,
Department of Hindi , Department of Computer Science etc. Each department assigned a
unique id and name. Some faculty members are also appointed to each department and one
of them works as head of the department.
1. Faculty information contains name , address , department , basic salary etc. A faculty
member is assigned to only one department but can teach various courses of other
department also.
2. Student information contain Roll no (unique) ,name , address etc. A student can opt only
one course.
3. Parent (guardian) information is also kept along with each student. We keep each
guardian’s name ,age ,sex and address.
• Entity-:
1. It is an object of concern used to represent the things in the real world, eg.
Car, table , book etc.
2. An entity need not be a physical entity, it can also represent a concept in
real world eg. Project , loan.
3. It represent a class of things , not any one instance, eg. Student entity has
instance of ‘Ramesh’ and ‘Mohan’.
• Strong Entity -: It contain primary key.
• Weak Entity-: It does not contain primary key.
• Entity set – A collection of a entities is called an entity set.
• Attributes: An attributes is a properly used to describe the specific features of the
entity. Eg: A Student entity may be described by the student’s name , age , address
and course etc.
Another Example
• Domains:
Each simple attributes of an entity type contains a possible set of values that can be attached to it.
This is called the domain of attributes. Ex-: for person entity person_id has a specific domain ,
integer values say from 1 to 100.
Types of Attributes
• Simple: The attribute that can not be further divided into smaller parts and represents the basic
meaning is called a simple attribute. For example : first name , last name , age.
• Composite: Attributes that can be further divided into smaller units and each individual unit
contain a specific meaning. For example : Name attributes of employee can be sub divided into
fname , lname and mname.
• Single Valued: Attributes having a single value for a particular entity. For example age is single
valued attribute of a student entity.
• Multivalued: Attributes that have more than one values for a particular entity is called
multivalued attribute. For multivalued attributes we must also specify the minimum and maximum
number of values that can be attached. For ex phone number for a person entity is a multivalued
attributes.
• Stored: Attributes that are directly stored in the database. For ex Birth date attributes of a person.
• Derived: Attributes that are not stored directly but can be derived from stored attributes are called
derived attributes. For example: The year of services of a person entity can be determined from the
current date and the date of joining of the person. Another example total salary of the person can
be calculated from the basic salary attributes of a person.
Relationships
• A connection or set of association.
• A rule for communication among entities.
Example : College is the database , the association between student and course entity, ie “Student opts
course” is an example of a relationship.
• Degree: The degree of a relationship type is the number of participating entity types.
• Binary Relationship: The relationship between two entities is called binary relationship.
• Ternary Relationship: A relationship among three entities is called ternary relationship.
• N-ry Relationship: Relationship among n entities.
RELATIONSHIP EXAMPLE
• Ternary and Binary Relationship
Relationship Cardinality:
Cardinality specifies the number of instances of an entity associated with another entity
participating in a relationship. there are following degree of cardinality:
• One to One: An entity in A is associated with at most one entity in B, and an entity B is
associated with at most one entity in A. ex: Relationship between college and principal.
• One to Many: An entity in A is associated with any number of entities in B. An entity B is
associated with at the most one entity in A. ex: department and faculty relationship.
• Many to One: An entity in A is associated with at most one entity in B. An entity in B is
associated with any number in A. ex: Relationship between course and instructor.
• Many to Many: Entities in A and B are associated with any number of entities from each
other ex: relationship between course and faculty, book writes author.
ONE TO ONE AND ONE TO MANY
MANY TO ONE AND MANY TO MANY
Entity Relationship Model
Entity Relationship Model
Entity Relationship Model
Entity Relationship Model
GENERALIZATION
Generalization is the process of extracting common properties from a set of entities and create a
generalized entity from it. It is a bottom-up approach in which two or more entities can be generalized to
a higher level entity if they have some attributes in common. For Example, STUDENT and FACULTY can be
generalized to a higher level entity called PERSON as shown in Figure 1. In this case, common attributes
like P_NAME, P_ADD become part of higher entity (PERSON) and specialized attributes like S_FEE become
part of specialized entity (STUDENT).
SPECIALIZATION
In specialization, an entity is divided into sub-entities based on their characteristics. It is a top-down
approach where higher level entity is specialized into two or more lower level entities. For Example,
EMPLOYEE entity in an Employee management system can be specialized into DEVELOPER, TESTER etc.
In this case, common attributes like E_NAME, E_SAL etc. become part of higher entity (EMPLOYEE) and
specialized attributes like TES_TYPE become part of specialized entity (TESTER).
AGGREGATION
An ER diagram is not capable of representing relationship between an entity and a relationship which
may be required in some scenarios. In those cases, a relationship with its corresponding entities is
aggregated into a higher level entity. For Example, Employee working for a project may require some
machinery. So, REQUIRE relationship is needed between relationship WORKS_FOR and entity
MACHINERY. Using aggregation, WORKS_FOR relationship with its entities EMPLOYEE and PROJECT is
aggregated into single entity and relationship REQUIRE is created between aggregated entity and
MACHINERY.
Inheritance
• We use all the above features of ER-Model in order to create classes of objects in object-
oriented programming. The details of entities are generally hidden from the user; this process
known as abstraction.
• Inheritance is an important feature of Generalization and Specialization. It allows lower-level
entities to inherit the attributes of higher-level entities.
Entity Relationship Model
Entity Relationship Model
Entity Relationship Model
Entity Relationship Model
THANK YOU

More Related Content

PPTX
Er model ppt
PPT
ER-Model-ER Diagram
ODP
ER Model in DBMS
PPTX
Database
PPTX
Er model
PPT
Relational Databases 2
PPTX
Attributes
PPTX
Entity Relationship (ER) Model
Er model ppt
ER-Model-ER Diagram
ER Model in DBMS
Database
Er model
Relational Databases 2
Attributes
Entity Relationship (ER) Model

What's hot (7)

PPT
DBMS UNIT1
PDF
B.Sc. II (IV Sem) RDBMS & PL/SQL Unit-2 Relational Model
PPTX
Data model
PPT
PDF
Db lec 02_new
PDF
Lecture 12
PPTX
DBMS UNIT1
B.Sc. II (IV Sem) RDBMS & PL/SQL Unit-2 Relational Model
Data model
Db lec 02_new
Lecture 12
Ad

Similar to Entity Relationship Model (20)

PPT
3144-unit-1entityrmodel-171122051336.ppt
PPT
ER Diagram introduction .ppt
PPT
ermodelN in database management system.ppt
PPT
E r model
PPTX
E_R-Diagram (2).pptx
PPTX
Data model and entity relationship
PPTX
DBMS Conceptual Design using ER Model.pptx
PDF
Lecture 2 database management system.pdf
PPTX
Database week 5 lecture includes spexiafix
PPTX
E - R Models.pptx SQL and plsql database
PPTX
Unit iv dbms
PDF
ER diagram
PDF
ER diagram is created based on three principal components: entities, attribut...
PDF
ERD with complete knowledge
PPTX
Database Systems (3+1)_Entity Relationship Models (2).pptx
PPTX
Entity Relationship Diagram – ER Diagram in DBMS.pptx
PPTX
E-R diagram in Database
PPT
E-R Model Entity relationship model, Entity, Attributes.ppt
PPT
Entity relationship Model, Unit-1.2-1.ppt
PPTX
Database Design and Entity relationship Model.pptx
3144-unit-1entityrmodel-171122051336.ppt
ER Diagram introduction .ppt
ermodelN in database management system.ppt
E r model
E_R-Diagram (2).pptx
Data model and entity relationship
DBMS Conceptual Design using ER Model.pptx
Lecture 2 database management system.pdf
Database week 5 lecture includes spexiafix
E - R Models.pptx SQL and plsql database
Unit iv dbms
ER diagram
ER diagram is created based on three principal components: entities, attribut...
ERD with complete knowledge
Database Systems (3+1)_Entity Relationship Models (2).pptx
Entity Relationship Diagram – ER Diagram in DBMS.pptx
E-R diagram in Database
E-R Model Entity relationship model, Entity, Attributes.ppt
Entity relationship Model, Unit-1.2-1.ppt
Database Design and Entity relationship Model.pptx
Ad

More from Bosco Technical Training Society, Don Bosco Technical School (Aff. GGSIP University, New Delhi) (20)

Recently uploaded (20)

DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
advance database management system book.pdf
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
RMMM.pdf make it easy to upload and study
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PPTX
Introduction to Building Materials
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
Complications of Minimal Access Surgery at WLH
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
advance database management system book.pdf
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
What if we spent less time fighting change, and more time building what’s rig...
RMMM.pdf make it easy to upload and study
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
Introduction to Building Materials
UNIT III MENTAL HEALTH NURSING ASSESSMENT
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Classroom Observation Tools for Teachers
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Supply Chain Operations Speaking Notes -ICLT Program
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
LDMMIA Reiki Yoga Finals Review Spring Summer
Weekly quiz Compilation Jan -July 25.pdf
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Complications of Minimal Access Surgery at WLH

Entity Relationship Model

  • 2. FEATURES OF E-R MODEL • ER Model is a high-level conceptual data model. • It allows us to describe the data involved in a real-world enterprise in term of objects and their relationships. • It is widely used to develop an initial design of a database. • It provides a set of useful concepts that make it convenient for a developer to move from a basic set of information to a detailed and precise description of information that can be easily implemented in a database system. • It describes data as a collection of entities , relationships and attributes.
  • 3. Example -: College is a database keeps track of Students ,faculty , departments and courses organized by various departments. College contains various departments like Department of English, Department of Hindi , Department of Computer Science etc. Each department assigned a unique id and name. Some faculty members are also appointed to each department and one of them works as head of the department. 1. Faculty information contains name , address , department , basic salary etc. A faculty member is assigned to only one department but can teach various courses of other department also. 2. Student information contain Roll no (unique) ,name , address etc. A student can opt only one course. 3. Parent (guardian) information is also kept along with each student. We keep each guardian’s name ,age ,sex and address.
  • 4. • Entity-: 1. It is an object of concern used to represent the things in the real world, eg. Car, table , book etc. 2. An entity need not be a physical entity, it can also represent a concept in real world eg. Project , loan. 3. It represent a class of things , not any one instance, eg. Student entity has instance of ‘Ramesh’ and ‘Mohan’. • Strong Entity -: It contain primary key. • Weak Entity-: It does not contain primary key. • Entity set – A collection of a entities is called an entity set. • Attributes: An attributes is a properly used to describe the specific features of the entity. Eg: A Student entity may be described by the student’s name , age , address and course etc.
  • 6. • Domains: Each simple attributes of an entity type contains a possible set of values that can be attached to it. This is called the domain of attributes. Ex-: for person entity person_id has a specific domain , integer values say from 1 to 100. Types of Attributes • Simple: The attribute that can not be further divided into smaller parts and represents the basic meaning is called a simple attribute. For example : first name , last name , age. • Composite: Attributes that can be further divided into smaller units and each individual unit contain a specific meaning. For example : Name attributes of employee can be sub divided into fname , lname and mname. • Single Valued: Attributes having a single value for a particular entity. For example age is single valued attribute of a student entity. • Multivalued: Attributes that have more than one values for a particular entity is called multivalued attribute. For multivalued attributes we must also specify the minimum and maximum number of values that can be attached. For ex phone number for a person entity is a multivalued attributes.
  • 7. • Stored: Attributes that are directly stored in the database. For ex Birth date attributes of a person. • Derived: Attributes that are not stored directly but can be derived from stored attributes are called derived attributes. For example: The year of services of a person entity can be determined from the current date and the date of joining of the person. Another example total salary of the person can be calculated from the basic salary attributes of a person. Relationships • A connection or set of association. • A rule for communication among entities. Example : College is the database , the association between student and course entity, ie “Student opts course” is an example of a relationship. • Degree: The degree of a relationship type is the number of participating entity types. • Binary Relationship: The relationship between two entities is called binary relationship. • Ternary Relationship: A relationship among three entities is called ternary relationship. • N-ry Relationship: Relationship among n entities.
  • 9. • Ternary and Binary Relationship
  • 10. Relationship Cardinality: Cardinality specifies the number of instances of an entity associated with another entity participating in a relationship. there are following degree of cardinality: • One to One: An entity in A is associated with at most one entity in B, and an entity B is associated with at most one entity in A. ex: Relationship between college and principal. • One to Many: An entity in A is associated with any number of entities in B. An entity B is associated with at the most one entity in A. ex: department and faculty relationship. • Many to One: An entity in A is associated with at most one entity in B. An entity in B is associated with any number in A. ex: Relationship between course and instructor. • Many to Many: Entities in A and B are associated with any number of entities from each other ex: relationship between course and faculty, book writes author.
  • 11. ONE TO ONE AND ONE TO MANY
  • 12. MANY TO ONE AND MANY TO MANY
  • 17. GENERALIZATION Generalization is the process of extracting common properties from a set of entities and create a generalized entity from it. It is a bottom-up approach in which two or more entities can be generalized to a higher level entity if they have some attributes in common. For Example, STUDENT and FACULTY can be generalized to a higher level entity called PERSON as shown in Figure 1. In this case, common attributes like P_NAME, P_ADD become part of higher entity (PERSON) and specialized attributes like S_FEE become part of specialized entity (STUDENT).
  • 18. SPECIALIZATION In specialization, an entity is divided into sub-entities based on their characteristics. It is a top-down approach where higher level entity is specialized into two or more lower level entities. For Example, EMPLOYEE entity in an Employee management system can be specialized into DEVELOPER, TESTER etc. In this case, common attributes like E_NAME, E_SAL etc. become part of higher entity (EMPLOYEE) and specialized attributes like TES_TYPE become part of specialized entity (TESTER).
  • 19. AGGREGATION An ER diagram is not capable of representing relationship between an entity and a relationship which may be required in some scenarios. In those cases, a relationship with its corresponding entities is aggregated into a higher level entity. For Example, Employee working for a project may require some machinery. So, REQUIRE relationship is needed between relationship WORKS_FOR and entity MACHINERY. Using aggregation, WORKS_FOR relationship with its entities EMPLOYEE and PROJECT is aggregated into single entity and relationship REQUIRE is created between aggregated entity and MACHINERY.
  • 20. Inheritance • We use all the above features of ER-Model in order to create classes of objects in object- oriented programming. The details of entities are generally hidden from the user; this process known as abstraction. • Inheritance is an important feature of Generalization and Specialization. It allows lower-level entities to inherit the attributes of higher-level entities.