SlideShare a Scribd company logo
1 of 14
Download to read offline
Dr. Amiya Ranjan Panda
Assistant Professor [II]
School of Computer Engineering,
Kalinga Institute of Industrial Technology (KIIT),
Deemed to be University,Odisha
ER Modeling…
KALINGA INSTITUTE OF INDUSTRIAL
TECHNOLOGY
School Of Computer
Engineering
4 Credit Lecture Note 06
Chapter Contents
q Keys
q Keys for Relationship Set
q Relationship Type
q Participation Constraints
q 1…h Representation
q Alternate Mapping Cardinality Representation
q Strong Entity sets and Weak Entity sets
2
Ø A key allows us to identify a set of attributes that suffice to distinguish entities
from each other.
ü A key is a property of the entity set, rather than of the individual entities.
ü A super key is a set of one or more attributes that allow us to identify
uniquely an entity in an entity set.
ü The minimal super keys are called candidate keys.
ü Primary key is a candidate key that is chosen by the database designer as
the principal means of identifying entities within an entity set. The primary
key can be represented by underlying the attribute name. The primary key
should be chosen such that its attributes are never or very rarely changed.
ü The remaining candidate keys except the primary key are called as
alternate keys.
ü If none of the columns is a candidate for the primary key in a table,
sometimes database designers use an extra column as a primary key instead
of using a composite key. Such key is known as the surrogate key.
ü Foreign key is the set of attributes which is used for referring to another
entity set having the primary key. In ER diagram, foreign key can not be
represented.
3
Keys
4
Keys…
Ø Let R be a relationship set involving entity sets E1, E2, ... En . Let PK(Ei )
denotes the set of attributes that forms the primary key for entity set Ei.
üIf the relationship set R has no descriptive attributes associated with it,
then the set of attributes PK(E1) U PK(E2) U ... U PK(En) describes an
individual relationship in set R.
ü If the relationship set R has attributes a1, a2 ... am associated with it,
then the set of attributes PK(E1) U PK(E2) U ... U PK(En) U
{a1,a2,...am} describes an individual relationship in set R.
Ø M:N relationship: primary key of the relationship set consists of the union
of the primary keys of the entity sets.
5
Keys for Relationship sets
Ø 1:M relationship: primary key of the relationship set is the primary key of
the many side entity set.
6
Keys for Relationship sets
Ø 1:1 relationship: The primary key of the relationship set is either the
primary key of any entity set.
Ø A relationship type is a meaningful association among entity types. The
degree of a relationship type is defined as the number of entity sets
participating in that relationship type.
Ø Binary Relationship: A relationship type is said to be binary when two
entity sets are involved.
Ø Ternary Relationship: Relationship types that involve three entity sets are
defined as ternary relationships.
7
Relationship Types
Ø Quaternary Relationship: A relationship of degree four can be referred to
as a quaternary relationship.
Ø Recursive Relationship: The participation of an entity set in a relationship
type can be indicated by its role name. When used in recursive relationship
types, role names describe the functionality of the participation.
8
Relationship Types…
Ø The participation constraint for an entity set in a binary relationship type is
based on whether an entity of that entity set needs to be related to an entity
of the other entity set through this relationship type.
ü Total participation: If, in order to exist, every entity must participate
in the relationship, then participation of the entity set in that relationship
type is total or mandatory. The total participation is represented by
double lines
ü Partial participation: If an entity can exist without participating in the
relationship, then participation of the entity type in that relationship type
is partial or optional
9
9
Participation constraint
Ø An edge between an entity set and a binary relationship set can have an
associated minimum and maximum cardinality; shown as l..h, where l is the
minimum and h is the maximum cardinality
ü A minimum value of 1 indicates total participation of the entity set in
the relationship set
ü A maximum value of 1 indicates that the entity participates in at most
one relationship, while a maximum value * indicates no limit
ü 1..* indicates total participation or double line
10
10
1…h Representation
11
11
Alternate Mapping Cardinality Representation
Ø An entity set where the entities have independent existence (that is, each
entity is unique) is referred to as a strong or base entity set. On the other
hand, the entity set that does not have independent existence, that is, an
entity set that does not have its own unique identifier is known as weak
entity set.
ü For a weak entity set to be meaningful, it must be associated with
another strong entity set called identifying or owner entity set
ü The relationship associating the weak entity set with the identifying
entity set is called the identifying relationship
ü The identifying relationship is usually many-to-one from the weak
entity set to the identifying entity set and the participation of the weak
entity set in the relationship is total participation
Ø An attribute in a weak entity set, which in conjunction with a unique
identifier of the parent entity set in the identifying relationship type
uniquely identifies weak entities, is called the partial key of the weak
entity set and is denoted by a dotted underline. The partial key of a weak
entity set is sometimes referred to as a discriminator.
12
12
Strong Entity sets and Weak Entity sets
Ø The primary key of a weak entity set is formed by the primary key of the
identifying entity set, plus the weak entity set’s discriminator.
13
13
Strong Entity sets and Weak Entity sets…
14

More Related Content

What's hot

Entity relationship diagram
Entity relationship diagramEntity relationship diagram
Entity relationship diagramHaseeb
 
Relational Databases 2
Relational Databases 2Relational Databases 2
Relational Databases 2Jason Hando
 
Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)Mudasir Qazi
 
Data Modeling Using the EntityRelationship (ER) Model
Data Modeling Using the EntityRelationship (ER) ModelData Modeling Using the EntityRelationship (ER) Model
Data Modeling Using the EntityRelationship (ER) Modelsontumax
 
ER model to Relational model mapping
ER model to Relational model mappingER model to Relational model mapping
ER model to Relational model mappingShubham Saini
 
Database Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity TypesDatabase Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity Typesaakanksha s
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship DiagramSiti Ismail
 
Er & eer to relational mapping
Er & eer to relational mappingEr & eer to relational mapping
Er & eer to relational mappingsaurabhshertukde
 
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...Mustafa Kamel Mohammadi
 
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING ARADHYAYANA
 
Design issues with constraints of E-R model
Design issues with constraints of E-R modelDesign issues with constraints of E-R model
Design issues with constraints of E-R modelPaurav Shah
 

What's hot (20)

Entity relationship diagram
Entity relationship diagramEntity relationship diagram
Entity relationship diagram
 
DBMS UNIT1
DBMS UNIT1DBMS UNIT1
DBMS UNIT1
 
ER Diagram
ER DiagramER Diagram
ER Diagram
 
Relational Databases 2
Relational Databases 2Relational Databases 2
Relational Databases 2
 
Er model
Er modelEr model
Er model
 
Entity relationship diagram
Entity relationship diagramEntity relationship diagram
Entity relationship diagram
 
Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)Database - Entity Relationship Diagram (ERD)
Database - Entity Relationship Diagram (ERD)
 
Data Modeling Using the EntityRelationship (ER) Model
Data Modeling Using the EntityRelationship (ER) ModelData Modeling Using the EntityRelationship (ER) Model
Data Modeling Using the EntityRelationship (ER) Model
 
Entity relation(1)
Entity relation(1)Entity relation(1)
Entity relation(1)
 
ER model to Relational model mapping
ER model to Relational model mappingER model to Relational model mapping
ER model to Relational model mapping
 
E r model
E r modelE r model
E r model
 
Database Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity TypesDatabase Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity Types
 
Entity relationship modelling
Entity relationship modellingEntity relationship modelling
Entity relationship modelling
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
Er & eer to relational mapping
Er & eer to relational mappingEr & eer to relational mapping
Er & eer to relational mapping
 
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...
 
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
ER DIAGRAM TO RELATIONAL SCHEMA MAPPING
 
Datastage database design and data modeling ppt 4
Datastage database design and data modeling ppt 4Datastage database design and data modeling ppt 4
Datastage database design and data modeling ppt 4
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
 
Design issues with constraints of E-R model
Design issues with constraints of E-R modelDesign issues with constraints of E-R model
Design issues with constraints of E-R model
 

Similar to Dbms 6: ER Modeling

erdiagramspresentation-150826044953-lva1-app6891.pdf
erdiagramspresentation-150826044953-lva1-app6891.pdferdiagramspresentation-150826044953-lva1-app6891.pdf
erdiagramspresentation-150826044953-lva1-app6891.pdfvinayakjadhav94
 
DBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptxDBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptxparimala123
 
DBMS & SQL Notes .pdf
DBMS & SQL Notes .pdfDBMS & SQL Notes .pdf
DBMS & SQL Notes .pdfDieHardGamer
 
Free video lectures for mca
Free video lectures for mcaFree video lectures for mca
Free video lectures for mcaEdhole.com
 
Advantages and disadvantages of er model in DBMS. Types of database models ..
Advantages and disadvantages of er model in DBMS. Types of database models ..Advantages and disadvantages of er model in DBMS. Types of database models ..
Advantages and disadvantages of er model in DBMS. Types of database models ..Nimrakhan89
 
Entity Relationship Diagram2
Entity Relationship Diagram2Entity Relationship Diagram2
Entity Relationship Diagram2sadeenedian08
 
Sree Dattha Institute of Engineering and Science
Sree Dattha Institute of Engineering and ScienceSree Dattha Institute of Engineering and Science
Sree Dattha Institute of Engineering and Sciencedrprkr74
 

Similar to Dbms 6: ER Modeling (20)

Er diagrams presentation
Er diagrams presentationEr diagrams presentation
Er diagrams presentation
 
erdiagramspresentation-150826044953-lva1-app6891.pdf
erdiagramspresentation-150826044953-lva1-app6891.pdferdiagramspresentation-150826044953-lva1-app6891.pdf
erdiagramspresentation-150826044953-lva1-app6891.pdf
 
DBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptxDBMS Unit-2_Final.pptx
DBMS Unit-2_Final.pptx
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Er model
Er modelEr model
Er model
 
DBMS & SQL Notes.pdf
DBMS & SQL Notes.pdfDBMS & SQL Notes.pdf
DBMS & SQL Notes.pdf
 
DBMS & SQL Notes .pdf
DBMS & SQL Notes .pdfDBMS & SQL Notes .pdf
DBMS & SQL Notes .pdf
 
DBMS_Notes (1).pdf
DBMS_Notes (1).pdfDBMS_Notes (1).pdf
DBMS_Notes (1).pdf
 
database.pptx
database.pptxdatabase.pptx
database.pptx
 
Free video lectures for mca
Free video lectures for mcaFree video lectures for mca
Free video lectures for mca
 
ERD(2).ppt
ERD(2).pptERD(2).ppt
ERD(2).ppt
 
dbms er model
dbms er modeldbms er model
dbms er model
 
Advantages and disadvantages of er model in DBMS. Types of database models ..
Advantages and disadvantages of er model in DBMS. Types of database models ..Advantages and disadvantages of er model in DBMS. Types of database models ..
Advantages and disadvantages of er model in DBMS. Types of database models ..
 
Lecture one db
Lecture one dbLecture one db
Lecture one db
 
Entity Relationship Diagram2
Entity Relationship Diagram2Entity Relationship Diagram2
Entity Relationship Diagram2
 
ERD.pptx
ERD.pptxERD.pptx
ERD.pptx
 
Er model
Er modelEr model
Er model
 
Er model
Er modelEr model
Er model
 
Sree Dattha Institute of Engineering and Science
Sree Dattha Institute of Engineering and ScienceSree Dattha Institute of Engineering and Science
Sree Dattha Institute of Engineering and Science
 
ER diagram - Krishna Geetha.ppt
ER diagram - Krishna Geetha.pptER diagram - Krishna Geetha.ppt
ER diagram - Krishna Geetha.ppt
 

More from Amiya9439793168

Dbms 14: Relational Calculus
Dbms 14: Relational CalculusDbms 14: Relational Calculus
Dbms 14: Relational CalculusAmiya9439793168
 
Dbms 13: Query Using Relational Algebra
Dbms 13: Query Using Relational AlgebraDbms 13: Query Using Relational Algebra
Dbms 13: Query Using Relational AlgebraAmiya9439793168
 
Dbms 11: Relational Algebra
Dbms 11: Relational AlgebraDbms 11: Relational Algebra
Dbms 11: Relational AlgebraAmiya9439793168
 
Dbms 10: Conversion of ER model to Relational Model
Dbms 10: Conversion of ER model to Relational ModelDbms 10: Conversion of ER model to Relational Model
Dbms 10: Conversion of ER model to Relational ModelAmiya9439793168
 
Dbms 9: Relational Model
Dbms 9: Relational ModelDbms 9: Relational Model
Dbms 9: Relational ModelAmiya9439793168
 
Dbms 8: Enhanced ER Model
Dbms 8: Enhanced ER ModelDbms 8: Enhanced ER Model
Dbms 8: Enhanced ER ModelAmiya9439793168
 
Dbms 3: 3 Schema Architecture
Dbms 3: 3 Schema ArchitectureDbms 3: 3 Schema Architecture
Dbms 3: 3 Schema ArchitectureAmiya9439793168
 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management SystemAmiya9439793168
 

More from Amiya9439793168 (10)

Dbms 14: Relational Calculus
Dbms 14: Relational CalculusDbms 14: Relational Calculus
Dbms 14: Relational Calculus
 
Dbms 13: Query Using Relational Algebra
Dbms 13: Query Using Relational AlgebraDbms 13: Query Using Relational Algebra
Dbms 13: Query Using Relational Algebra
 
Dbms 12: Join
Dbms 12: JoinDbms 12: Join
Dbms 12: Join
 
Dbms 11: Relational Algebra
Dbms 11: Relational AlgebraDbms 11: Relational Algebra
Dbms 11: Relational Algebra
 
Dbms 10: Conversion of ER model to Relational Model
Dbms 10: Conversion of ER model to Relational ModelDbms 10: Conversion of ER model to Relational Model
Dbms 10: Conversion of ER model to Relational Model
 
Dbms 9: Relational Model
Dbms 9: Relational ModelDbms 9: Relational Model
Dbms 9: Relational Model
 
Dbms 8: Enhanced ER Model
Dbms 8: Enhanced ER ModelDbms 8: Enhanced ER Model
Dbms 8: Enhanced ER Model
 
Dbms 3: 3 Schema Architecture
Dbms 3: 3 Schema ArchitectureDbms 3: 3 Schema Architecture
Dbms 3: 3 Schema Architecture
 
Dbms 2: Data Model
Dbms 2: Data ModelDbms 2: Data Model
Dbms 2: Data Model
 
Introduction to Database Management System
Introduction to Database Management SystemIntroduction to Database Management System
Introduction to Database Management System
 

Recently uploaded

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 

Recently uploaded (20)

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 

Dbms 6: ER Modeling

  • 1. Dr. Amiya Ranjan Panda Assistant Professor [II] School of Computer Engineering, Kalinga Institute of Industrial Technology (KIIT), Deemed to be University,Odisha ER Modeling… KALINGA INSTITUTE OF INDUSTRIAL TECHNOLOGY School Of Computer Engineering 4 Credit Lecture Note 06
  • 2. Chapter Contents q Keys q Keys for Relationship Set q Relationship Type q Participation Constraints q 1…h Representation q Alternate Mapping Cardinality Representation q Strong Entity sets and Weak Entity sets 2
  • 3. Ø A key allows us to identify a set of attributes that suffice to distinguish entities from each other. ü A key is a property of the entity set, rather than of the individual entities. ü A super key is a set of one or more attributes that allow us to identify uniquely an entity in an entity set. ü The minimal super keys are called candidate keys. ü Primary key is a candidate key that is chosen by the database designer as the principal means of identifying entities within an entity set. The primary key can be represented by underlying the attribute name. The primary key should be chosen such that its attributes are never or very rarely changed. ü The remaining candidate keys except the primary key are called as alternate keys. ü If none of the columns is a candidate for the primary key in a table, sometimes database designers use an extra column as a primary key instead of using a composite key. Such key is known as the surrogate key. ü Foreign key is the set of attributes which is used for referring to another entity set having the primary key. In ER diagram, foreign key can not be represented. 3 Keys
  • 5. Ø Let R be a relationship set involving entity sets E1, E2, ... En . Let PK(Ei ) denotes the set of attributes that forms the primary key for entity set Ei. üIf the relationship set R has no descriptive attributes associated with it, then the set of attributes PK(E1) U PK(E2) U ... U PK(En) describes an individual relationship in set R. ü If the relationship set R has attributes a1, a2 ... am associated with it, then the set of attributes PK(E1) U PK(E2) U ... U PK(En) U {a1,a2,...am} describes an individual relationship in set R. Ø M:N relationship: primary key of the relationship set consists of the union of the primary keys of the entity sets. 5 Keys for Relationship sets
  • 6. Ø 1:M relationship: primary key of the relationship set is the primary key of the many side entity set. 6 Keys for Relationship sets Ø 1:1 relationship: The primary key of the relationship set is either the primary key of any entity set.
  • 7. Ø A relationship type is a meaningful association among entity types. The degree of a relationship type is defined as the number of entity sets participating in that relationship type. Ø Binary Relationship: A relationship type is said to be binary when two entity sets are involved. Ø Ternary Relationship: Relationship types that involve three entity sets are defined as ternary relationships. 7 Relationship Types
  • 8. Ø Quaternary Relationship: A relationship of degree four can be referred to as a quaternary relationship. Ø Recursive Relationship: The participation of an entity set in a relationship type can be indicated by its role name. When used in recursive relationship types, role names describe the functionality of the participation. 8 Relationship Types…
  • 9. Ø The participation constraint for an entity set in a binary relationship type is based on whether an entity of that entity set needs to be related to an entity of the other entity set through this relationship type. ü Total participation: If, in order to exist, every entity must participate in the relationship, then participation of the entity set in that relationship type is total or mandatory. The total participation is represented by double lines ü Partial participation: If an entity can exist without participating in the relationship, then participation of the entity type in that relationship type is partial or optional 9 9 Participation constraint
  • 10. Ø An edge between an entity set and a binary relationship set can have an associated minimum and maximum cardinality; shown as l..h, where l is the minimum and h is the maximum cardinality ü A minimum value of 1 indicates total participation of the entity set in the relationship set ü A maximum value of 1 indicates that the entity participates in at most one relationship, while a maximum value * indicates no limit ü 1..* indicates total participation or double line 10 10 1…h Representation
  • 12. Ø An entity set where the entities have independent existence (that is, each entity is unique) is referred to as a strong or base entity set. On the other hand, the entity set that does not have independent existence, that is, an entity set that does not have its own unique identifier is known as weak entity set. ü For a weak entity set to be meaningful, it must be associated with another strong entity set called identifying or owner entity set ü The relationship associating the weak entity set with the identifying entity set is called the identifying relationship ü The identifying relationship is usually many-to-one from the weak entity set to the identifying entity set and the participation of the weak entity set in the relationship is total participation Ø An attribute in a weak entity set, which in conjunction with a unique identifier of the parent entity set in the identifying relationship type uniquely identifies weak entities, is called the partial key of the weak entity set and is denoted by a dotted underline. The partial key of a weak entity set is sometimes referred to as a discriminator. 12 12 Strong Entity sets and Weak Entity sets
  • 13. Ø The primary key of a weak entity set is formed by the primary key of the identifying entity set, plus the weak entity set’s discriminator. 13 13 Strong Entity sets and Weak Entity sets…
  • 14. 14