Professional Documents
Culture Documents
Conceptual Data Modeling Using E - R Data Model (CLASS-L8)
Conceptual Data Modeling Using E - R Data Model (CLASS-L8)
Presented By:
Monalisa Panigrahi
Asst.Professor (LPU)
B2702-CSE 301
10/5/2009 1
E-R Diagram With Composite,
Multivalued, and Derived Attributes
10/5/2009 2
Relationship Sets with
Attributes
10/5/2009 3
Roles
Entity sets of a relationship need not be distinct
The labels “manager” and “worker” are called
roles; they specify how employee entities
interact via the works-for relationship set.
Roles are indicated in E-R diagrams by labeling
the lines that connect diamonds to rectangles.
Role labels are optional, and are used to clarify
semantics of the relationship
10/5/2009 4
Cardinality Constraints
We express cardinality constraints by drawing either a
directed line (→), signifying “one,” or an undirected line
(—), signifying “many,” between the relationship set and
the entity set.
E.g.: One-to-one relationship:
z A customer is associated with at most one loan via
the relationship borrower
z A loan is associated with at most one customer via
borrower
10/5/2009 5
One-To-Many Relationship
10/5/2009 6
Many-To-One Relationships
10/5/2009 7
Many-To-Many Relationship
10/5/2009 11
10/5/2009 12