Title: MGMT 360 Database Management
1MGMT 360Database Management
2Outline
- Notation basics
- Understanding relationships
- Generalization hierarchies
- Problem solving strategies
3Basic Symbols
4Cardinalities
5Cardinality Notation
6Classification of Cardinalities
- Minimum cardinality based
- Mandatory
- Optional
- Maximum cardinality based
- Functional
- 1-M
- M-N
- 1-1
7More Relationship Examples
8Comparison to Access Notation
9Understanding Relationships
- Identification dependency
- M-N relationships with attributes
- Self-identifying relationships
- M-way relationships
- Equivalence between M-N and 1-M relationships
10Identification Dependency
11M-N Relationships with Attributes
12Instance Diagrams for Self-Referencing
Relationships
13ERD Notation for Self-Referencing Relationships
14Associative Entity Types for M-way Relationships
15Associative Entity Types for M-way Relationships
16Associative Entity Types for M-way Relationships
17Associative Entity Types
18Associative Entity Types
19Relationship Equivalence
- Replace M-N relationship
- Associative entity type
- Two identifying 1-M relationships
- M-N relationship versus associative entity type
- Largely preference
- Associative entity more flexible in some
situations
20Associative Entity Type Example
21Generalization Hierarchies
22Inheritance
- Subtypes inherit attributes of supertypes (direct
and indirect) - Allows abbreviation of attribute list
- Applies to code (methods) as well as attributes
(data)
23Generalization Constraints
24Multiple Levels of Generalization
25Problem Solving Strategies
- Use notation precisely
- Strive for simplicity
- ERD connections
- Avoid over connecting the ERD
- Identify hub(s) of the ERD
- Use specialized patterns carefully
- Justify important design decisions
26Common Notation Errors
- Identifying versus non-identifying relationships
- Unique relationship names
- Cardinality for weak entities
- Usage of foreign keys
27Attribute to Entity Type Transformation
28Compound Attribute Transformation
29Generalization Hierarchy Transformation
30Entity Type Expansion Transformation
31Summary
- Data modeling is an important skill
- No standard ERD notation
- Use notation precisely
- Apply specialized concepts carefully
- Work many problems