ER Issue
ER Issue
ER Issue
MANAGEMEN
T SYSTEMS
ER Design
Issues
Overview
E R D e s i g nI s s u e
s.
In the previous section we understood:
- How to design a ER diagram?
- Different ways of identifying entity sets and their relationships.
Database Management
- Various representations of entity sets, attributes and relationships.
Systems
However, users often mislead the concept of the elements and the design
process of the ER diagram. Thus, it leads to a complex structure of the ER
diagram and certain issues that does not meet the characteristics of the
real-world enterprise model.
ER Design
Issues
Dr. Jay Sarraf, School of Computer Engineering, KIIT Deemed to be University
ER Design Issues
1 Entity vs Attribute
Database Management
2 Entity vs Relationships
Systems
3 Binary vs Ternary Relationships
ER Design
Issues
Dr. Jay Sarraf, School of Computer Engineering, KIIT Deemed to be University
Entity vs Attributes
1 Entity vs Attributes
When to represent a value as an attribute?
When to represent a value as a separate entity-set?
Database Management
The structure of the real-world enterprise being simulated and the
semantics attached to its properties determine how an entity set or
attribute should be used. When a user uses the main key of one
entity set as an attribute of another, it results in an error.
Systems
Instead to make use of the connection to do so. Additionally, although
we identify it in the relationship sets, the main key characteristics are
implicit in the relationship set.
ER Design
Issues
Dr. Jay Sarraf, School of Computer Engineering, KIIT Deemed to be University
Cont…
F_name
id name
Database Management
M_name
STUDENT
Systems
L_name
mobile
DOB
age
ER Design
mobile
Issues
STUDENT
F_name
name M_name
mobile
L_name _no
id
Database Management
location
Std
STUDENT _
MOBILE
Systems
phn
type
DOB age
ER Design
Issues
Note: Representing as a separate entity-set allows details to be added later.
Dr. Jay Sarraf, School of Computer Engineering, KIIT Deemed to be University
Cont…
Database Management
attributes on borrower.
l_no c_id
Systems
city
c_id amount
Customer
Studen borrower Loan
t
ER Design
C_name
Issues
pin
2 Entity vs Relationship
Database Management
the entities in order to comprehend and decide on the appropriate
usage. It is best to keep the entity set separate from the object if
portraying it as a relationship set is necessary.
Systems
ER Design
Issues
Dr. Jay Sarraf, School of Computer Engineering, KIIT Deemed to be University
Cont…
C_name
c_id city l_no c_id
amount
pin
Customer borrower Loan b_name
Database Management
Loan_br
anch BRANCH
assets
Systems
C_name
c_id city b_name
assets
city
pin Customer borrower BRANCH
ER Design
Issues
L_no amount
Database Management
COURSE
Systems
ER Design
TEACHER
Studen Relationship STUDENT
Issues
t
TEACHER
Studen Relationship STUDENT
t
Database Management
TEACHER
Studen Relationship COURSE
t
Systems
STUDENT
Studen Relationship COURSE
t
ER Design
TEACHER
Studen teaches COURSE enroll STUDENT
Issues
t
Database Management
ASSIGNMENT
Systems
ER Design
STUDENT
Studen Relationship SUBMISSION
Issues
t
due_date
Sub_date
Sub_id
username data Short_name
Database Management
STUDENT
Studen submit SUBMISSION comple
te ASSIGNMENT
t
Systems
url
ER Design
Issues
Dr. Jay Sarraf, School of Computer Engineering, KIIT Deemed to be University
Cont…
due_date
Sub_date
version
username data
Short_name
Database Management
STUDENT
Studen submit SUBMISSION complete ASSIGNMENT
t
Systems
url
ER Design
Discriminator for submission is version number.
Issues
Dr. Jay Sarraf, School of Computer Engineering, KIIT Deemed to be University
Placement of Relationship Attributes
Database Management
to only the entity set on the many side of the Relationship.
Systems
either one of the participating entities
ER Design
relationship set
Issues
Dr. Jay Sarraf, School of Computer Engineering, KIIT Deemed to be University
Design Methodologies
Database Management
3 Recognize attributes of entity sets and attributes of relationship sets.
4
Systems
Define binary relationship types and existence dependencies.
5 Define general cardinality, constraints, keys, and discriminators.
Design diagram.
ER Design
Issues
Dr. Jay Sarraf, School of Computer Engineering, KIIT Deemed to be University