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
Modeling
schema attributes
person ID, name, street, city
student ID, tot_cred
employee ID, salary
Drawback: getting information about, an employee requires
accessing two relations, the one corresponding to the low-level
schema and the one corresponding to the high-level schema
Representing Specialization as Schemas
(Cont.)
Method 2:
Form a schema for each entity set with all local and inherited attributes
schema attributes
person ID, name, street, city
student ID, name, street, city, tot_cred
employee ID, name, street, city, salary
If specialization is total, the schema for the generalized entity set
(person) not required to store information
Can be defined as a “view” relation containing union of
specialization relations
But explicit schema may still be needed for foreign key constraints
Drawback: name, street and city may be stored redundantly for people
who are both students and employees
Schemas Corresponding to Aggregation