SlideShare ist ein Scribd-Unternehmen logo
1 von 9
1
Conceptual Level
• Conceptual Level is a detailed specification of overall structure of data. That is,
detailed specification of WHAT data to be stored.
• ER diagram is used to represent conceptual level.
Entity Relationship Diagram(ER diagram)
• ER diagram is a logical representation of a data for an organization or
business.
• ER is a graphical representation of data.
• ER diagram consist of
i. Entity
ii. Attributes
iii. Relationship
ENTITY
 Definition: An entity is a person, place, object, event, or concept about
which we or organization want to store data.
 Example
Person: Student, Teacher, Employee
Place: ClassRoom, StoreRoom, Lab, Department
Object: Computer, Equipment
Event: Teaching related, registration , examination
Concept: Course
 Types of Entity
• Strong Entity and Weak Entity
Strong Entity Weak Entity
An entity that exists independently of other
entity.
An entity that depend upon some other
entity.
For Example :
Student, Employee, Course
For Example:
Lab, ClassRoom, Department
Department doesnot exist without
employee
Representation on ER Diagram
1. It is represented using Rectangle
2. Name of the entity is written in
capital letter inside rectangle
Representation on ER Diagram
1. It is represented using double
Rectangle
2. Name of the entity is written in
capital letter inside double rectangle
DEPARTMENT
EMPLOYEE
2
ATTRIBUTES
 Definition:
• Each entity has some properties or characteristics that are required
to be stored. It is known as attributes of the entity.
• What we want to store about entity is called its attributes
 Example: Store Attendance of Student
Entity: Student
Attributes:
Rollno
Name
Class
Semester
Date
Status(Present or Absent)
 DOMAIN of Attributes
o The possible or allowed values of any attribute are known as its
domain.
o Example
 Student_Gender: Allowed values (domain) are Male, Female and
Other.
 Student_Caste: Possible or allowed values are SC,ST, OBC, Gen.
(domain of caste)
 There is girls college. So what would be domain of
Student_Gender(Female)
 Age of Employee: possible values or domain must be any value
between 20 to 70.
 Name of student/employee: not allowed numbers and symbols.
Set of string made using alphabets A to Z
3
 Types of Attributes
• Simple and Composite Attribute
• Single Valued Attribute and Multiple valued attribute
Simple Attribute Composite Attribute
Attribute that cannot be divided into parts
is called simple attribute.
Attribute that can be divided into parts is
called composite attribute
For Example
RegistrationNo
StudentId
RollNo
AadharNo
EmailId
Caste
Gender
For Example
Name(First Name, Middle Name, LastName)
DateofBirth(DD, MM, YY)
Address(HNo, City, State, Country, Pin
Code)
PhoneNo (contrycode, stdcode, number)
Representation on ER Diagram
1. It is represented using ellipse and
name od attribute inside ellipse.
Representation on ER Diagram
Single Valued Attribute Multivalued Attribute
Attribute having ONLY ONE VALUE is called
single valued attribute.
Attribute having MORE THAN ONE VALUE is
called multi valued attribute
Example:
RollNo
Gender (Male, Female, Other)
Caste (possiblevalues:SC, ST, OBC,Gen)
Example :
PhoneNo
Hobbies
Mail Id
Qualification(X,XII, BSc,Msc.)
Representation on ER Diagram
1. It is represented using ellipse and
name inside ellipse
Representation on ER Diagram
1. It is represented using double ellipse
and name inside ellipse
RegistrationNo
Gender Hobbies
FirstName
Name
MiddleName
LastName
4
• Stored Attribute and Derived Attribute
• Unique Attribute: An attribute whose value cannot be duplicate.
Example: RollNo, Enrollment No, AadharNo, Vechile No, Account
No,
Stored Attribute Derived Attribute
Attributes whose cannot be calculated from
other attribute.
Attributes whose value can be calculated
from other related attributes(stored
attribute) is called derived attribute.
Stored Attributes value are stored in the
database.
Derived Attributes are not stored in
database.
Example: DateofBirth
Attendance , basic pay, da, hra
Marks
Example:
Age derived from DateofBirth
NetSalary from atten
Percentage from marks
Representation on ER Diagram
1. It is represented using ellipse and
name inside ellipse
Representation on ER Diagram
1. It is represented using dashed ellipse
and name inside ellipse
DateofBirth Age
RollNo
5
RELATIONSHIP
 Definition: It is an association between one or more entity types.
 In ER diagram, it is represented by diamond symbol containing name of
relationship.
 Type of Relationship
 Based on degree of Relationship: Degree of Relationship means
number of entity participating in a relationship. Three types of
relationship based on degree
• Unary Relationship: A relationship in which only one/single entity
is involved.
• Binary Relationship: A relationship in which two entities are
involved.
• Ternary Relationship: A relationship in which three entities are
involved
 Based on mapping cardinalities
Married
to
PERSON
Study
STUDENT
WORK
EMPLOYEE DEPARTMENT
TEACHER
6
• In case of binary relationship, suppose first entity is A and second
entity is B. Cardinality means number of instances of entity B that
can be associated with each instance of A.
• The mapping cardinalities are
1. One to One : An entity A is associated with one and only one
instance of entity B and entity B is associated with only one
and only entity of A.
Example: HEAD(Department, Employee). Each department can
have ONLY one head. An employee can head only one
department
2. One to Many: An entity A is associated with any number of
entities in B but entity in B is associated with only one of entity
in A.
A student can study many subjects
Student Subjects
Amrit Maths
Jaspreet Physics
Jasmeet Hindi
Sita Chemistry
Gita Home Science
3. Many to One: An entity in A is associated with only one entity
in B but entity in B but entity B is associated with any number
of entities in A.
Example: Many subject are studied by one student
Student Subjects
Amrit Maths
Jaspreet Physics
Jasmeet Hindi
Sita Chemistry
Gita Home Science
STUDENT SUBJECT
study
1 N
STUDENT SUBJECT
study
N 1
7
4. Many to Many: An entity in A is associated with any number
of entities in B and B is associated with any number of entities
in A.
Example: A database is being constructed to keep track of teams and games of
sports. A team has a number of players. It is desired to keep track of the players
participating in the game, their positions in the game and the result of the game.
Draw ER diagram and choose your fav sprots.
Step 1: Identify Entities
a. TEAM
b. GAME
c. PLAYER
Step 2: Identify Attributes
a. TEAM(teamname)
b. GAME(gamename,result)
c. PLAYER(teamname,position, gamename)
Step 3: Identify Relationship
a. HAS(TEAM, PLAYER)
b. PARTICIPLATE(PLAYER, GAME)
gamename teamname
position
gamename result
teamname
TEAM PLAYER
GAME
HAS
PARTICIPATE
8
Extended ER Diagram (EER Diagram)
In a ER diagram, when we specify specialization and generalization that is
known as EER(Extended ER Diagram)
Suppose an organization has four types of employee secretary, engineers ,
salaried and hourly employees. Some of the important attributes of each of
these types are
o SECRETARY(Name, EmpNo, Address,PhoneNo, TypingSpeed)
o ENGINEER(Name, EmpNo, Address,PhoneNo, Eng_type)
o SALARIED EMPLOYEE(Name, EmpNo, Address,PhoneNo, BasicPay)
o HOURLY EMPLOYEE(Name, EmpNo, Address,PhoneNo, AmtPerHour)
Each of these employee types common attributes like Name, EmpNo,
Address and PhoneNo. In addition, each employee have one or more
different attributes. For example typing speed is unique to secretary.
So while designing a conceptual data model, we have
Generalization
 The process of defining new single entity type that contains attributes that
are common in all entities is called generalization.
 The new entity created through generalization is called generic entity or
superclass or supertype.
 It is a top – down approach.
 For example: Define a supertype EMPLOYEE with common attributes. So
after generalization, the entities are
o EMPLOYEE(Name, EmpNo, Address, PhoneNo)
Specialization
 The process of defining different one or more entity types that contain
attributes that are unique to a particular entity is called specialization.
 The different entity type created through specialization is called subclass
or subtype of supertype
 It is reverse of generalization process
 It is a bottom up approach.
 For Example: Define four subtypes with unique attributes. So after
specialization, the entities are
o SECRETARY(TypingSpeed)
o ENGINEER( Eng_type)
o SALARIED EMPLOYEE(BasicPay)
9
o HOURLY EMPLOYEE(AmtPerHour)
Note: In an EER diagram, Generalization and Specialization is depicted by a
triangle labeled ISA.
Generalization and Specialization
ISA
ISA
Name
EmpNo Address
EMPLOYEE PhoneNo
TypingSpeed
SECRETARY
Eng_type
ENGINEER
Basicpay
SALARIED_EMPLOYEE
amtpperhour
HOURLY_EMPLOYEE

Weitere ähnliche Inhalte

Was ist angesagt?

Entity relationship model
Entity relationship modelEntity relationship model
Entity relationship modelRUpaliLohar
 
Example for ER diagram part11
Example for ER diagram part11Example for ER diagram part11
Example for ER diagram part11DrMohammed Qassim
 
Unit i b(er model)
Unit i b(er model)Unit i b(er model)
Unit i b(er model)Rohit Rathi
 
Rdbms ER model
Rdbms ER modelRdbms ER model
Rdbms ER modelUma mohan
 
Mapping cardinality (cardinality constraint) in ER MODEL
Mapping cardinality (cardinality constraint) in ER MODELMapping cardinality (cardinality constraint) in ER MODEL
Mapping cardinality (cardinality constraint) in ER MODELRUpaliLohar
 
The entity relationship model
The entity relationship modelThe entity relationship model
The entity relationship modelJane Garay
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysisijtsrd
 
Cyprus_paper-final_D.O.Santos_et_al
Cyprus_paper-final_D.O.Santos_et_alCyprus_paper-final_D.O.Santos_et_al
Cyprus_paper-final_D.O.Santos_et_alVictor Santos
 
Multiple Methods and Techniques in Analyzing Computer-Supported Collaborative...
Multiple Methods and Techniques in Analyzing Computer-Supported Collaborative...Multiple Methods and Techniques in Analyzing Computer-Supported Collaborative...
Multiple Methods and Techniques in Analyzing Computer-Supported Collaborative...CITE
 

Was ist angesagt? (19)

dbms er model
dbms er modeldbms er model
dbms er model
 
Entity relationship model
Entity relationship modelEntity relationship model
Entity relationship model
 
Data base lec3 (erd)
Data base lec3 (erd)Data base lec3 (erd)
Data base lec3 (erd)
 
Example for ER diagram part11
Example for ER diagram part11Example for ER diagram part11
Example for ER diagram part11
 
Unit i b(er model)
Unit i b(er model)Unit i b(er model)
Unit i b(er model)
 
Rdbms ER model
Rdbms ER modelRdbms ER model
Rdbms ER model
 
Mapping cardinality (cardinality constraint) in ER MODEL
Mapping cardinality (cardinality constraint) in ER MODELMapping cardinality (cardinality constraint) in ER MODEL
Mapping cardinality (cardinality constraint) in ER MODEL
 
Prolog ppt
Prolog pptProlog ppt
Prolog ppt
 
B.Sc. II (IV Sem) RDBMS & PL/SQL Unit-2 Relational Model
B.Sc. II (IV Sem) RDBMS & PL/SQL Unit-2 Relational ModelB.Sc. II (IV Sem) RDBMS & PL/SQL Unit-2 Relational Model
B.Sc. II (IV Sem) RDBMS & PL/SQL Unit-2 Relational Model
 
Dbs4
Dbs4Dbs4
Dbs4
 
Unit iv dbms
Unit   iv dbmsUnit   iv dbms
Unit iv dbms
 
Copy Of Univ
Copy Of UnivCopy Of Univ
Copy Of Univ
 
ER_model
ER_modelER_model
ER_model
 
The entity relationship model
The entity relationship modelThe entity relationship model
The entity relationship model
 
Sentiment Analysis
Sentiment AnalysisSentiment Analysis
Sentiment Analysis
 
Cyprus_paper-final_D.O.Santos_et_al
Cyprus_paper-final_D.O.Santos_et_alCyprus_paper-final_D.O.Santos_et_al
Cyprus_paper-final_D.O.Santos_et_al
 
Attributes
AttributesAttributes
Attributes
 
1869495 er diagrams
1869495 er diagrams1869495 er diagrams
1869495 er diagrams
 
Multiple Methods and Techniques in Analyzing Computer-Supported Collaborative...
Multiple Methods and Techniques in Analyzing Computer-Supported Collaborative...Multiple Methods and Techniques in Analyzing Computer-Supported Collaborative...
Multiple Methods and Techniques in Analyzing Computer-Supported Collaborative...
 

Ähnlich wie ER diagram (20)

Entity Relationship Diagram – ER Diagram in DBMS.pptx
Entity Relationship Diagram – ER Diagram in DBMS.pptxEntity Relationship Diagram – ER Diagram in DBMS.pptx
Entity Relationship Diagram – ER Diagram in DBMS.pptx
 
Chapter3
Chapter3Chapter3
Chapter3
 
Chapter3
Chapter3Chapter3
Chapter3
 
ER Diagram_Kameshwari.docx
ER Diagram_Kameshwari.docxER Diagram_Kameshwari.docx
ER Diagram_Kameshwari.docx
 
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...Fundamentals of database system  - Data Modeling Using the Entity-Relationshi...
Fundamentals of database system - Data Modeling Using the Entity-Relationshi...
 
E r model
E r modelE r model
E r model
 
E_R-Diagram (2).pptx
E_R-Diagram (2).pptxE_R-Diagram (2).pptx
E_R-Diagram (2).pptx
 
Er Modeling
Er ModelingEr Modeling
Er Modeling
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 
Er model
Er modelEr model
Er model
 
Data modeling using the entity relationship model
Data modeling using the entity relationship modelData modeling using the entity relationship model
Data modeling using the entity relationship model
 
dbms mannual.pdf
dbms mannual.pdfdbms mannual.pdf
dbms mannual.pdf
 
Data Models
Data ModelsData Models
Data Models
 
DBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptxDBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptx
 
ER-Diagram.pptx
ER-Diagram.pptxER-Diagram.pptx
ER-Diagram.pptx
 
5e7ry754.pptx
5e7ry754.pptx5e7ry754.pptx
5e7ry754.pptx
 
Entity Relationship Diagram2
Entity Relationship Diagram2Entity Relationship Diagram2
Entity Relationship Diagram2
 
er-models.pptx
er-models.pptxer-models.pptx
er-models.pptx
 
ERD(2).ppt
ERD(2).pptERD(2).ppt
ERD(2).ppt
 
erdiagramspresentation-150826044953-lva1-app6891.pdf
erdiagramspresentation-150826044953-lva1-app6891.pdferdiagramspresentation-150826044953-lva1-app6891.pdf
erdiagramspresentation-150826044953-lva1-app6891.pdf
 

Mehr von Amrit Kaur

File Organization
File OrganizationFile Organization
File OrganizationAmrit Kaur
 
Introduction to transaction processing
Introduction to transaction processingIntroduction to transaction processing
Introduction to transaction processingAmrit Kaur
 
Transaction Processing
Transaction ProcessingTransaction Processing
Transaction ProcessingAmrit Kaur
 
Sample Interview Question
Sample Interview QuestionSample Interview Question
Sample Interview QuestionAmrit Kaur
 
12. oracle database architecture
12. oracle database architecture12. oracle database architecture
12. oracle database architectureAmrit Kaur
 
11. using regular expressions with oracle database
11. using regular expressions with oracle database11. using regular expressions with oracle database
11. using regular expressions with oracle databaseAmrit Kaur
 
9. index and index organized table
9. index and index organized table9. index and index organized table
9. index and index organized tableAmrit Kaur
 
8. transactions
8. transactions8. transactions
8. transactionsAmrit Kaur
 
7. exceptions handling in pl
7. exceptions handling in pl7. exceptions handling in pl
7. exceptions handling in plAmrit Kaur
 
5. stored procedure and functions
5. stored procedure and functions5. stored procedure and functions
5. stored procedure and functionsAmrit Kaur
 
2. DML_INSERT_DELETE_UPDATE
2. DML_INSERT_DELETE_UPDATE2. DML_INSERT_DELETE_UPDATE
2. DML_INSERT_DELETE_UPDATEAmrit Kaur
 
1. dml select statement reterive data
1. dml select statement reterive data1. dml select statement reterive data
1. dml select statement reterive dataAmrit Kaur
 
Chapter 8 Inheritance
Chapter 8 InheritanceChapter 8 Inheritance
Chapter 8 InheritanceAmrit Kaur
 
Chapter 7 C++ As OOP
Chapter 7 C++ As OOPChapter 7 C++ As OOP
Chapter 7 C++ As OOPAmrit Kaur
 
Chapter 6 OOPS Concept
Chapter 6 OOPS ConceptChapter 6 OOPS Concept
Chapter 6 OOPS ConceptAmrit Kaur
 

Mehr von Amrit Kaur (20)

File Organization
File OrganizationFile Organization
File Organization
 
Introduction to transaction processing
Introduction to transaction processingIntroduction to transaction processing
Introduction to transaction processing
 
Transaction Processing
Transaction ProcessingTransaction Processing
Transaction Processing
 
Normalization
NormalizationNormalization
Normalization
 
Sample Interview Question
Sample Interview QuestionSample Interview Question
Sample Interview Question
 
12. oracle database architecture
12. oracle database architecture12. oracle database architecture
12. oracle database architecture
 
11. using regular expressions with oracle database
11. using regular expressions with oracle database11. using regular expressions with oracle database
11. using regular expressions with oracle database
 
10. timestamp
10. timestamp10. timestamp
10. timestamp
 
9. index and index organized table
9. index and index organized table9. index and index organized table
9. index and index organized table
 
8. transactions
8. transactions8. transactions
8. transactions
 
7. exceptions handling in pl
7. exceptions handling in pl7. exceptions handling in pl
7. exceptions handling in pl
 
6. triggers
6. triggers6. triggers
6. triggers
 
5. stored procedure and functions
5. stored procedure and functions5. stored procedure and functions
5. stored procedure and functions
 
4. plsql
4. plsql4. plsql
4. plsql
 
3. ddl create
3. ddl create3. ddl create
3. ddl create
 
2. DML_INSERT_DELETE_UPDATE
2. DML_INSERT_DELETE_UPDATE2. DML_INSERT_DELETE_UPDATE
2. DML_INSERT_DELETE_UPDATE
 
1. dml select statement reterive data
1. dml select statement reterive data1. dml select statement reterive data
1. dml select statement reterive data
 
Chapter 8 Inheritance
Chapter 8 InheritanceChapter 8 Inheritance
Chapter 8 Inheritance
 
Chapter 7 C++ As OOP
Chapter 7 C++ As OOPChapter 7 C++ As OOP
Chapter 7 C++ As OOP
 
Chapter 6 OOPS Concept
Chapter 6 OOPS ConceptChapter 6 OOPS Concept
Chapter 6 OOPS Concept
 

Kürzlich hochgeladen

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 

Kürzlich hochgeladen (20)

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 

ER diagram

  • 1. 1 Conceptual Level • Conceptual Level is a detailed specification of overall structure of data. That is, detailed specification of WHAT data to be stored. • ER diagram is used to represent conceptual level. Entity Relationship Diagram(ER diagram) • ER diagram is a logical representation of a data for an organization or business. • ER is a graphical representation of data. • ER diagram consist of i. Entity ii. Attributes iii. Relationship ENTITY  Definition: An entity is a person, place, object, event, or concept about which we or organization want to store data.  Example Person: Student, Teacher, Employee Place: ClassRoom, StoreRoom, Lab, Department Object: Computer, Equipment Event: Teaching related, registration , examination Concept: Course  Types of Entity • Strong Entity and Weak Entity Strong Entity Weak Entity An entity that exists independently of other entity. An entity that depend upon some other entity. For Example : Student, Employee, Course For Example: Lab, ClassRoom, Department Department doesnot exist without employee Representation on ER Diagram 1. It is represented using Rectangle 2. Name of the entity is written in capital letter inside rectangle Representation on ER Diagram 1. It is represented using double Rectangle 2. Name of the entity is written in capital letter inside double rectangle DEPARTMENT EMPLOYEE
  • 2. 2 ATTRIBUTES  Definition: • Each entity has some properties or characteristics that are required to be stored. It is known as attributes of the entity. • What we want to store about entity is called its attributes  Example: Store Attendance of Student Entity: Student Attributes: Rollno Name Class Semester Date Status(Present or Absent)  DOMAIN of Attributes o The possible or allowed values of any attribute are known as its domain. o Example  Student_Gender: Allowed values (domain) are Male, Female and Other.  Student_Caste: Possible or allowed values are SC,ST, OBC, Gen. (domain of caste)  There is girls college. So what would be domain of Student_Gender(Female)  Age of Employee: possible values or domain must be any value between 20 to 70.  Name of student/employee: not allowed numbers and symbols. Set of string made using alphabets A to Z
  • 3. 3  Types of Attributes • Simple and Composite Attribute • Single Valued Attribute and Multiple valued attribute Simple Attribute Composite Attribute Attribute that cannot be divided into parts is called simple attribute. Attribute that can be divided into parts is called composite attribute For Example RegistrationNo StudentId RollNo AadharNo EmailId Caste Gender For Example Name(First Name, Middle Name, LastName) DateofBirth(DD, MM, YY) Address(HNo, City, State, Country, Pin Code) PhoneNo (contrycode, stdcode, number) Representation on ER Diagram 1. It is represented using ellipse and name od attribute inside ellipse. Representation on ER Diagram Single Valued Attribute Multivalued Attribute Attribute having ONLY ONE VALUE is called single valued attribute. Attribute having MORE THAN ONE VALUE is called multi valued attribute Example: RollNo Gender (Male, Female, Other) Caste (possiblevalues:SC, ST, OBC,Gen) Example : PhoneNo Hobbies Mail Id Qualification(X,XII, BSc,Msc.) Representation on ER Diagram 1. It is represented using ellipse and name inside ellipse Representation on ER Diagram 1. It is represented using double ellipse and name inside ellipse RegistrationNo Gender Hobbies FirstName Name MiddleName LastName
  • 4. 4 • Stored Attribute and Derived Attribute • Unique Attribute: An attribute whose value cannot be duplicate. Example: RollNo, Enrollment No, AadharNo, Vechile No, Account No, Stored Attribute Derived Attribute Attributes whose cannot be calculated from other attribute. Attributes whose value can be calculated from other related attributes(stored attribute) is called derived attribute. Stored Attributes value are stored in the database. Derived Attributes are not stored in database. Example: DateofBirth Attendance , basic pay, da, hra Marks Example: Age derived from DateofBirth NetSalary from atten Percentage from marks Representation on ER Diagram 1. It is represented using ellipse and name inside ellipse Representation on ER Diagram 1. It is represented using dashed ellipse and name inside ellipse DateofBirth Age RollNo
  • 5. 5 RELATIONSHIP  Definition: It is an association between one or more entity types.  In ER diagram, it is represented by diamond symbol containing name of relationship.  Type of Relationship  Based on degree of Relationship: Degree of Relationship means number of entity participating in a relationship. Three types of relationship based on degree • Unary Relationship: A relationship in which only one/single entity is involved. • Binary Relationship: A relationship in which two entities are involved. • Ternary Relationship: A relationship in which three entities are involved  Based on mapping cardinalities Married to PERSON Study STUDENT WORK EMPLOYEE DEPARTMENT TEACHER
  • 6. 6 • In case of binary relationship, suppose first entity is A and second entity is B. Cardinality means number of instances of entity B that can be associated with each instance of A. • The mapping cardinalities are 1. One to One : An entity A is associated with one and only one instance of entity B and entity B is associated with only one and only entity of A. Example: HEAD(Department, Employee). Each department can have ONLY one head. An employee can head only one department 2. One to Many: An entity A is associated with any number of entities in B but entity in B is associated with only one of entity in A. A student can study many subjects Student Subjects Amrit Maths Jaspreet Physics Jasmeet Hindi Sita Chemistry Gita Home Science 3. Many to One: An entity in A is associated with only one entity in B but entity in B but entity B is associated with any number of entities in A. Example: Many subject are studied by one student Student Subjects Amrit Maths Jaspreet Physics Jasmeet Hindi Sita Chemistry Gita Home Science STUDENT SUBJECT study 1 N STUDENT SUBJECT study N 1
  • 7. 7 4. Many to Many: An entity in A is associated with any number of entities in B and B is associated with any number of entities in A. Example: A database is being constructed to keep track of teams and games of sports. A team has a number of players. It is desired to keep track of the players participating in the game, their positions in the game and the result of the game. Draw ER diagram and choose your fav sprots. Step 1: Identify Entities a. TEAM b. GAME c. PLAYER Step 2: Identify Attributes a. TEAM(teamname) b. GAME(gamename,result) c. PLAYER(teamname,position, gamename) Step 3: Identify Relationship a. HAS(TEAM, PLAYER) b. PARTICIPLATE(PLAYER, GAME) gamename teamname position gamename result teamname TEAM PLAYER GAME HAS PARTICIPATE
  • 8. 8 Extended ER Diagram (EER Diagram) In a ER diagram, when we specify specialization and generalization that is known as EER(Extended ER Diagram) Suppose an organization has four types of employee secretary, engineers , salaried and hourly employees. Some of the important attributes of each of these types are o SECRETARY(Name, EmpNo, Address,PhoneNo, TypingSpeed) o ENGINEER(Name, EmpNo, Address,PhoneNo, Eng_type) o SALARIED EMPLOYEE(Name, EmpNo, Address,PhoneNo, BasicPay) o HOURLY EMPLOYEE(Name, EmpNo, Address,PhoneNo, AmtPerHour) Each of these employee types common attributes like Name, EmpNo, Address and PhoneNo. In addition, each employee have one or more different attributes. For example typing speed is unique to secretary. So while designing a conceptual data model, we have Generalization  The process of defining new single entity type that contains attributes that are common in all entities is called generalization.  The new entity created through generalization is called generic entity or superclass or supertype.  It is a top – down approach.  For example: Define a supertype EMPLOYEE with common attributes. So after generalization, the entities are o EMPLOYEE(Name, EmpNo, Address, PhoneNo) Specialization  The process of defining different one or more entity types that contain attributes that are unique to a particular entity is called specialization.  The different entity type created through specialization is called subclass or subtype of supertype  It is reverse of generalization process  It is a bottom up approach.  For Example: Define four subtypes with unique attributes. So after specialization, the entities are o SECRETARY(TypingSpeed) o ENGINEER( Eng_type) o SALARIED EMPLOYEE(BasicPay)
  • 9. 9 o HOURLY EMPLOYEE(AmtPerHour) Note: In an EER diagram, Generalization and Specialization is depicted by a triangle labeled ISA. Generalization and Specialization ISA ISA Name EmpNo Address EMPLOYEE PhoneNo TypingSpeed SECRETARY Eng_type ENGINEER Basicpay SALARIED_EMPLOYEE amtpperhour HOURLY_EMPLOYEE