ER Model
ER Model
• Design Process
• Modeling
• Constraints
• E-R Diagram
• Design Issues
• Weak Entity Sets
• Extended E-R Features
• Design of the Bank Database
• Reduction to Relation Schemas
• Database Design
• UML
Modelling
•Architects
•Aeronautical engineers
•Computer architects
•Traffic engineers
Benefits of Modelling
67
E-R Diagram for a Banking Enterprise
Summary of Symbols Used in E-R Notation
Summary of Symbols (Cont.)
Reduction to Relation Schemas
• Primary keys allow entity sets and relationship sets
to be expressed uniformly as relation schemas that
represent the contents of the database.
• A database which conforms to an E-R diagram can
be represented by a collection of schemas.
• For each entity set and relationship set there is a
unique schema that is assigned the name of the
corresponding entity set or relationship set.
• Each schema has a number of columns (generally
corresponding to attributes), which have unique
names.
Representing Entity Sets as Schemas
• A strong entity set reduces to a schema with the same
attributes.
• A weak entity set becomes a table that includes a column for
the primary key of the identifying strong entity set
schema attributes
person name, street, city
customer name, street, city, credit_rating
employee name, street, city, salary
overlapping
disjoint