Module 2
Module 2
Module 2
Data Modeling – ER Model and
Relational Model
Topics to be Covered
Entity-Relationship Model
Types of Attributes
Relationship
Structural Constraints
Relational Model
Relational Model Constraints
Mapping E-R Model to Relational Schema
Integrity Constraints
Entity-Relationship(ER) Model
Attributes can be
composite / simple (atomic)
single-valued / multivalued
stored / derived
descriptive
key / nonkey.
Composite Attributes
Key Constraints
Primary Key (1 Key)
Foreign Key (Referential Integrity)
Candidate key (Minimal Super Key)
Super Key (1 or more Keys)