Assignment -1
Name: Kameshwari
Reg No: PG20153
Entity Relationship Diagram – ER Diagram in DBMS
An Entity–relationship model (ER model) describes the structure of a database with the help of
a diagram, which is known as Entity Relationship Diagram (ER Diagram). An ER model is a
design or blueprint of a database that can later be implemented as a database. The main
components of E-R model are: entity set and relationship set.
What is an Entity Relationship Diagram (ER Diagram)?
An ER diagram shows the relationship among entity sets. An entity set is a group of similar
entities and these entities can have attributes. In terms of DBMS, an entity is a table or attribute
of a table in database, so by showing relationship among tables and their attributes, ER diagram
shows the complete logical structure of a database. Lets have a look at a simple ER diagram to
understand this concept.
A simple ER Diagram:
In the following diagram we have two entities Student and College and their relationship. The
relationship between Student and College is many to one as a college can have many students
however a student cannot study in multiple colleges at the same time. Student entity has
attributes such as Stu_Id, Stu_Name & Stu_Addr and College entity has attributes such as
Col_ID & Col_Name.
Here are the geometric shapes and their meaning in an E-R Diagram. We will discuss these terms
in detail in the next section(Components of a ER Diagram) of this guide so don’t worry too much
about these terms now, just go through them once.
Rectangle: Represents Entity sets.
Ellipses: Attributes
Diamonds: Relationship Set
Lines: They link attributes to Entity Sets and Entity sets to Relationship Set
Double Ellipses: Multivalued Attributes
Dashed Ellipses: Derived Attributes
Double Rectangles: Weak Entity Sets
Double Lines: Total participation of an entity in a relationship set
Components of a ER Diagram
As shown in the above diagram, an ER diagram has three main components:
1. Entity
2. Attribute
3. Relationship
1. Entity
An entity is an object or component of data. An entity is represented as rectangle in an ER
diagram.
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. We will
read more about relationships later, for now focus on entities.
WeakEntity:
An entity that cannot be uniquely identified by its own attributes and relies on the relationship
with other entity is called weak entity. The weak entity is represented by a double rectangle. For
example – a bank account cannot be uniquely identified without knowing the bank to which the
account belongs, so bank account is a weak entity.
2. Attribute
An attribute describes the property of an entity. An attribute is represented as Oval in an ER
diagram. There are four types of attributes:
1.Key attribute
2.Composite attribute
3.Multivalued attribute
4. Derived attribute
1. 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 however the text of key attribute is underlined.
2. Composite attribute:
An attribute that is a combination of other attributes is known as composite attribute. For
example, in student entity, the student address is a composite attribute as an address is composed
of other attributes such as pin code, state, country.
3. Multivalve attribute:
An attribute that can hold multiple values is known as multivalued attribute. It is represented
with double ovals in an ER Diagram. For example – A person can have more than one phone
numbers so the phone number attribute is multivalued.
4. Derived attribute:
A derived attribute is one whose value is dynamic and derived from another attribute. It is
represented by dashed oval in an ER Diagram. For example – Person age is a derived attribute
as it changes over time and can be derived from another attribute (Date of birth).
E-R diagram with multivalued and derived attributes:
3. Relationship
A relationship is represented by diamond shape in ER diagram, it shows the relationship among
entities. There are four types of relationships:
1.One to One
2.One to Many
3.Many to One
4. Many to Many
1. One to One Relationship
When a single instance of an entity is associated with a single instance of another entity then it is
called one to one relationship. For example, a person has only one passport and a passport is
given to one person.
2. One to Many Relationship
When a single instance of an entity is associated with more than one instances of another entity
then it is called one to many relationship. For example – a customer can place many orders but a
order cannot be placed by many customers.
3. 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.
4. 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.
Total Participation of an Entity set
A Total participation of an entity set represents that each entity in entity set must have at least
one relationship in a relationship set. For example: In the below diagram each college must have
at-least one associated Student.
ENTITIES: Admin, Students, Teachers, Courses
ATTRIBUTES: Login name, password, personal details, Education, Fees, Duration etc.
RELATIONS: Student and Course, Teacher and Course, Admin and Course.
CARDINALITIES: This are all are mandatory cardinality relations as well.
This is a basic student Management system.
Here Admin is having the attributes of Password, Login Name, Name, and AID.
Course is having the attributes of CID, CName, Fees, and Duration.
Teacher is having the attributes TID, TName, Course, and Education.
Student is having the attributes Fees Details, Personal Details, Education Detail, Name
etc.
Here All the IDS SID, TID, CID, AID this entire are the primary keys and unique keys.
This diagram explains regarding the basic admin process and allocating of course for the
student.
ER Diagram For Hospitatility Management:
ENTITIES: Doctors, Patients, Tests
SINGLE ATTRIBUTES: Address, Date, Description, Details etc
MULTIVALUED ATTRIBUTES: Specialization, Qualification
KEY ATTRIBUTE : Name, Type
Doctor Entity is having attributes of name, address, specialization, qualification.
Patients Entity is having an type, details etc.
Tests Entity is having Type, Description
There are some attributes with relation disease, treatment etc.
Here this is a ER diagram which deals with the patient and type of treatment which each
doctor can provide
What are the tests to be done for the patient according to his diseases?
Specialization is a multi attribute where it is used for different purposes.
This is a basic ER diagram for the hospitality management.
ENTITIES: Books, Publisher, Member
KEY ATTRIBUTES: Book ID, Memb ID
ATTRIBUTES: Price, availability, Author etc
RELATIONS: Books to Publisher, books to member etc
This ER diagram explains how a basic library system.
How a books to be published and how a member can borrow the books from library

More Related Content

PPTX
ER DIAGRAM & ER MODELING IN DBMS
PPTX
Entity Relationship Diagram – ER Diagram in DBMS.pptx
PPTX
Unit 1 Data Modeling_Updated (2) (2).pptx
PPTX
Entity Relationship Diagram – ER Diagram in DBMS.pptx
PPTX
ER-Diagram.pptx
PPTX
ER Diagram- Cardinality.pptx
PPTX
E-R Diagram and their models using datbase
PDF
dbms mannual.pdf
ER DIAGRAM & ER MODELING IN DBMS
Entity Relationship Diagram – ER Diagram in DBMS.pptx
Unit 1 Data Modeling_Updated (2) (2).pptx
Entity Relationship Diagram – ER Diagram in DBMS.pptx
ER-Diagram.pptx
ER Diagram- Cardinality.pptx
E-R Diagram and their models using datbase
dbms mannual.pdf

Similar to ER Diagram_Kameshwari.docx (20)

PPTX
Entity_DBMS.pptx
PPTX
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
PPT
ermodelN in database management system.ppt
PPTX
Database Design and Entity relationship Model.pptx
PPT
ER-Model-ER Diagram
PPTX
ER-Diagram.pptx , ER diagram , entity reltaionship diagram , data base
PPTX
5. ER Diagram for engineering in a fulfillment of degree.
PPTX
Er diagrams
PPTX
E_R-Diagram (2).pptx
PPTX
42_16SCCCS4_20200520053835884587894.pptx
PPTX
DBMS Conceptual Design using ER Model.pptx
PPT
3144-unit-1entityrmodel-171122051336.ppt
PDF
Advantages and disadvantages of er model in DBMS. Types of database models ..
PPT
Unit 2 ER Model.ppterfgmefwlgmkldfsmglkdfg
PPTX
Unit iv dbms
PPTX
Data model and entity relationship
PPTX
entityrelationshipmodel.pptx
PPT
ER Diagram introduction .ppt
PPTX
Entity-Relationship Diagram (ERD) Material.pptx
PPTX
Revision ch 3
Entity_DBMS.pptx
COMPUTER PROGRAMMING-LESSON3-ENTITY.pptx
ermodelN in database management system.ppt
Database Design and Entity relationship Model.pptx
ER-Model-ER Diagram
ER-Diagram.pptx , ER diagram , entity reltaionship diagram , data base
5. ER Diagram for engineering in a fulfillment of degree.
Er diagrams
E_R-Diagram (2).pptx
42_16SCCCS4_20200520053835884587894.pptx
DBMS Conceptual Design using ER Model.pptx
3144-unit-1entityrmodel-171122051336.ppt
Advantages and disadvantages of er model in DBMS. Types of database models ..
Unit 2 ER Model.ppterfgmefwlgmkldfsmglkdfg
Unit iv dbms
Data model and entity relationship
entityrelationshipmodel.pptx
ER Diagram introduction .ppt
Entity-Relationship Diagram (ERD) Material.pptx
Revision ch 3
Ad

More from KameshwariPurusothma (8)

PPTX
Case Study (Bonuses in Bad Time).pptx
PPTX
Virtual Reality Training.pptx
DOCX
Cash Flow_Kameshwari_Assignment 3.docx
DOCX
Assignment-2_Capital Structure.docx
PPTX
Ethical Dilemma Case Study (O.B).docx.pptx
PPTX
Case Study (The Hidden Traps in Decision Making).pptx
PPTX
Case Study (Old Hands or New Blood).pptx
PPTX
Case Study (Bonuses in Bad Time).pptx
Case Study (Bonuses in Bad Time).pptx
Virtual Reality Training.pptx
Cash Flow_Kameshwari_Assignment 3.docx
Assignment-2_Capital Structure.docx
Ethical Dilemma Case Study (O.B).docx.pptx
Case Study (The Hidden Traps in Decision Making).pptx
Case Study (Old Hands or New Blood).pptx
Case Study (Bonuses in Bad Time).pptx
Ad

Recently uploaded (20)

PPTX
OIP-Narrative-Presentation-1Dg2.pptxdjjdjsjsjsj
PPTX
DiagdndigsbskshsvsjsisDiarrheal Diseases-1.pptx
PDF
Basic GMP - Training good manufacturing procedure
PPTX
SE-Unit-1.pptxmmmmmmmmmmmmmmmmmmmmmmmmnnnn
PPTX
CDI 2.pptx special crime investigation with legal medicine
PPTX
merged_presentation_choladeckkk (2).pptx
PDF
Result-BAMS-4th-Year-2016-Onwards-May-June-2025.pdf
PPTX
SE_UNIT_2_Complete_PPT.pptxzsdsdsdsdsdsddsd
PPTX
GPAT Presentation PPT and details about imp topics.pptx
PPTX
mathsportfoliomanvi-211121071838 (1).pptx
PPT
pwm ppt .pdf long description of pwm....
PDF
AAO Generalist notification 2025-2026-2027
PPTX
Final Second DC Messeting PPT-Pradeep.M final.pptx
PPT
14001jhgASIUODOHAFJCOPJHF9SUY9GFJSLOGHJ9IOSUHG98
PDF
BPT_Beach_Energy_FY25_half_year_results_presentation.pdf
PDF
Branding_RAMP-ML........................
PPTX
Unit 3 Presentation Etiquette Business and Corporate Etiquette
PPTX
Unit 2 CORPORATE CULTURE AND EXPECTATIONS
PDF
CollegePresentation.pdf hsjsisjsjsjsssoo
PPTX
Coordination Compuch flasks didiinds.pptx
OIP-Narrative-Presentation-1Dg2.pptxdjjdjsjsjsj
DiagdndigsbskshsvsjsisDiarrheal Diseases-1.pptx
Basic GMP - Training good manufacturing procedure
SE-Unit-1.pptxmmmmmmmmmmmmmmmmmmmmmmmmnnnn
CDI 2.pptx special crime investigation with legal medicine
merged_presentation_choladeckkk (2).pptx
Result-BAMS-4th-Year-2016-Onwards-May-June-2025.pdf
SE_UNIT_2_Complete_PPT.pptxzsdsdsdsdsdsddsd
GPAT Presentation PPT and details about imp topics.pptx
mathsportfoliomanvi-211121071838 (1).pptx
pwm ppt .pdf long description of pwm....
AAO Generalist notification 2025-2026-2027
Final Second DC Messeting PPT-Pradeep.M final.pptx
14001jhgASIUODOHAFJCOPJHF9SUY9GFJSLOGHJ9IOSUHG98
BPT_Beach_Energy_FY25_half_year_results_presentation.pdf
Branding_RAMP-ML........................
Unit 3 Presentation Etiquette Business and Corporate Etiquette
Unit 2 CORPORATE CULTURE AND EXPECTATIONS
CollegePresentation.pdf hsjsisjsjsjsssoo
Coordination Compuch flasks didiinds.pptx

ER Diagram_Kameshwari.docx

  • 1. Assignment -1 Name: Kameshwari Reg No: PG20153 Entity Relationship Diagram – ER Diagram in DBMS An Entity–relationship model (ER model) describes the structure of a database with the help of a diagram, which is known as Entity Relationship Diagram (ER Diagram). An ER model is a design or blueprint of a database that can later be implemented as a database. The main components of E-R model are: entity set and relationship set. What is an Entity Relationship Diagram (ER Diagram)? An ER diagram shows the relationship among entity sets. An entity set is a group of similar entities and these entities can have attributes. In terms of DBMS, an entity is a table or attribute of a table in database, so by showing relationship among tables and their attributes, ER diagram shows the complete logical structure of a database. Lets have a look at a simple ER diagram to understand this concept. A simple ER Diagram: In the following diagram we have two entities Student and College and their relationship. The relationship between Student and College is many to one as a college can have many students however a student cannot study in multiple colleges at the same time. Student entity has attributes such as Stu_Id, Stu_Name & Stu_Addr and College entity has attributes such as
  • 2. Col_ID & Col_Name. Here are the geometric shapes and their meaning in an E-R Diagram. We will discuss these terms in detail in the next section(Components of a ER Diagram) of this guide so don’t worry too much about these terms now, just go through them once. Rectangle: Represents Entity sets. Ellipses: Attributes Diamonds: Relationship Set Lines: They link attributes to Entity Sets and Entity sets to Relationship Set Double Ellipses: Multivalued Attributes Dashed Ellipses: Derived Attributes Double Rectangles: Weak Entity Sets Double Lines: Total participation of an entity in a relationship set
  • 3. Components of a ER Diagram As shown in the above diagram, an ER diagram has three main components: 1. Entity 2. Attribute 3. Relationship 1. Entity An entity is an object or component of data. An entity is represented as rectangle in an ER diagram. 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. We will read more about relationships later, for now focus on entities.
  • 4. WeakEntity: An entity that cannot be uniquely identified by its own attributes and relies on the relationship with other entity is called weak entity. The weak entity is represented by a double rectangle. For example – a bank account cannot be uniquely identified without knowing the bank to which the account belongs, so bank account is a weak entity. 2. Attribute An attribute describes the property of an entity. An attribute is represented as Oval in an ER diagram. There are four types of attributes: 1.Key attribute 2.Composite attribute 3.Multivalued attribute 4. Derived attribute
  • 5. 1. 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 however the text of key attribute is underlined. 2. Composite attribute: An attribute that is a combination of other attributes is known as composite attribute. For example, in student entity, the student address is a composite attribute as an address is composed
  • 6. of other attributes such as pin code, state, country. 3. Multivalve attribute: An attribute that can hold multiple values is known as multivalued attribute. It is represented with double ovals in an ER Diagram. For example – A person can have more than one phone numbers so the phone number attribute is multivalued. 4. Derived attribute: A derived attribute is one whose value is dynamic and derived from another attribute. It is represented by dashed oval in an ER Diagram. For example – Person age is a derived attribute as it changes over time and can be derived from another attribute (Date of birth).
  • 7. E-R diagram with multivalued and derived attributes: 3. Relationship A relationship is represented by diamond shape in ER diagram, it shows the relationship among entities. There are four types of relationships: 1.One to One 2.One to Many 3.Many to One 4. Many to Many 1. One to One Relationship When a single instance of an entity is associated with a single instance of another entity then it is called one to one relationship. For example, a person has only one passport and a passport is given to one person.
  • 8. 2. One to Many Relationship When a single instance of an entity is associated with more than one instances of another entity then it is called one to many relationship. For example – a customer can place many orders but a order cannot be placed by many customers. 3. 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. 4. 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
  • 9. projects and a project can be assigned to many students. Total Participation of an Entity set A Total participation of an entity set represents that each entity in entity set must have at least one relationship in a relationship set. For example: In the below diagram each college must have at-least one associated Student.
  • 10. ENTITIES: Admin, Students, Teachers, Courses ATTRIBUTES: Login name, password, personal details, Education, Fees, Duration etc. RELATIONS: Student and Course, Teacher and Course, Admin and Course. CARDINALITIES: This are all are mandatory cardinality relations as well. This is a basic student Management system. Here Admin is having the attributes of Password, Login Name, Name, and AID. Course is having the attributes of CID, CName, Fees, and Duration. Teacher is having the attributes TID, TName, Course, and Education. Student is having the attributes Fees Details, Personal Details, Education Detail, Name etc. Here All the IDS SID, TID, CID, AID this entire are the primary keys and unique keys.
  • 11. This diagram explains regarding the basic admin process and allocating of course for the student. ER Diagram For Hospitatility Management: ENTITIES: Doctors, Patients, Tests SINGLE ATTRIBUTES: Address, Date, Description, Details etc MULTIVALUED ATTRIBUTES: Specialization, Qualification KEY ATTRIBUTE : Name, Type Doctor Entity is having attributes of name, address, specialization, qualification. Patients Entity is having an type, details etc. Tests Entity is having Type, Description There are some attributes with relation disease, treatment etc. Here this is a ER diagram which deals with the patient and type of treatment which each doctor can provide What are the tests to be done for the patient according to his diseases?
  • 12. Specialization is a multi attribute where it is used for different purposes. This is a basic ER diagram for the hospitality management. ENTITIES: Books, Publisher, Member KEY ATTRIBUTES: Book ID, Memb ID ATTRIBUTES: Price, availability, Author etc RELATIONS: Books to Publisher, books to member etc This ER diagram explains how a basic library system. How a books to be published and how a member can borrow the books from library