Professional Documents
Culture Documents
Model
Database System Concepts - 7th Edition 8.2 ©Silberschatz, Korth and Sudarshan
Extended E-R Features
Database System Concepts - 7th Edition 8.3 ©Silberschatz, Korth and Sudarshan
Specialization
Database System Concepts - 7th Edition 8.4 ©Silberschatz, Korth and Sudarshan
Specialization Example
Overlapping – employee and student
Disjoint – instructor and secretary
Total and partial
Database System Concepts - 7th Edition 8.5 ©Silberschatz, Korth and Sudarshan
Representing Specialization via Schemas
Method 1:
Form a schema for the higher-level entity
Form a schema for each lower-level entity set, include primary
key of higher-level entity set and local attributes
schema attributes
person ID, name, street, city
student ID, tot_cred
employee ID, salary
Database System Concepts - 7th Edition 8.6 ©Silberschatz, Korth and Sudarshan
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
Database System Concepts - 7th Edition 8.7 ©Silberschatz, Korth and Sudarshan
Generalization
Database System Concepts - 7th Edition 8.8 ©Silberschatz, Korth and Sudarshan
Design Constraints on a Specialization/Generalization
Database System Concepts - 7th Edition 8.9 ©Silberschatz, Korth and Sudarshan
Aggregation
Consider the ternary relationship proj_guide, which we saw earlier
Database System Concepts - 7th Edition 8.10 ©Silberschatz, Korth and Sudarshan
Aggregation (Cont.)
Database System Concepts - 7th Edition 8.11 ©Silberschatz, Korth and Sudarshan
Aggregation (Cont.)
Eliminate this redundancy via aggregation without introducing
redundancy, the following diagram represents:
A student is guided by a particular instructor on a particular project
A student, instructor, project combination may have an associated
evaluation
Database System Concepts - 7th Edition 8.12 ©Silberschatz, Korth and Sudarshan
Reduction to Relational Schemas
Database System Concepts - 7th Edition 8.13 ©Silberschatz, Korth and Sudarshan
Design Issues
Database System Concepts - 7th Edition 8.15 ©Silberschatz, Korth and Sudarshan
Common Mistakes in E-R Diagrams (Cont.)
Database System Concepts - 7th Edition 8.16 ©Silberschatz, Korth and Sudarshan
Entities vs. Attributes
Use of entity sets vs. attributes
Database System Concepts - 7th Edition 8.17 ©Silberschatz, Korth and Sudarshan
Entities vs. Relationship sets
Use of entity sets vs. relationship sets
Possible guideline is to designate a relationship set to describe an action that occurs between entities
Database System Concepts - 7th Edition 8.18 ©Silberschatz, Korth and Sudarshan
Binary Vs. Non-Binary Relationships
Database System Concepts - 7th Edition 8.19 ©Silberschatz, Korth and Sudarshan
Converting Non-Binary Relationships to Binary Form
Database System Concepts - 7th Edition 8.20 ©Silberschatz, Korth and Sudarshan
Converting Non-Binary Relationships (Cont.)
Database System Concepts - 7th Edition 8.21 ©Silberschatz, Korth and Sudarshan
E-R Design Decisions
The use of an attribute or entity set to represent an object.
Whether a real-world concept is best expressed by an entity set or
a relationship set.
The use of a ternary relationship versus a pair of binary
relationships.
The use of a strong or weak entity set.
The use of specialization/generalization – contributes to modularity
in the design.
The use of aggregation – can treat the aggregate entity set as a
single unit without concern for the details of its internal structure.
Database System Concepts - 7th Edition 8.22 ©Silberschatz, Korth and Sudarshan
Summary of Symbols Used in E-R Notation
Database System Concepts - 7th Edition 8.23 ©Silberschatz, Korth and Sudarshan
Symbols Used in E-R Notation (Cont.)
Database System Concepts - 7th Edition 8.24 ©Silberschatz, Korth and Sudarshan
Alternative ER Notations
Chen, IDE1FX, …
Database System Concepts - 7th Edition 8.25 ©Silberschatz, Korth and Sudarshan
Alternative ER Notations
Database System Concepts - 7th Edition 8.26 ©Silberschatz, Korth and Sudarshan
UML
Database System Concepts - 7th Edition 8.27 ©Silberschatz, Korth and Sudarshan
ER vs. UML Class Diagrams
Database System Concepts - 7th Edition 8.28 ©Silberschatz, Korth and Sudarshan
ER vs. UML Class Diagrams
ER Diagram Notation Equivalent in UML
Database System Concepts - 7th Edition 8.30 ©Silberschatz, Korth and Sudarshan
ER vs. UML Class Diagrams
Database System Concepts - 7th Edition 8.31 ©Silberschatz, Korth and Sudarshan
Other Aspects of Database Design
Functional Requirements
Data Flow, Workflow
Schema Evolution
Database System Concepts - 7th Edition 8.32 ©Silberschatz, Korth and Sudarshan
End of Chapter 6 Part-b