Data Modelling
Data Modelling
Data Modelling
Data
A
Beginners Guide
Andy Oppel
TECHNISCHE
INFORMATIONSBtBUOTHEK
UNIVERSITATSBiBLIOTHEK
HANNOVER
Mc
Gravu
Hill
New York
Lisbon
Chicago
London
San Francisco
Madrid
Mexico
Milan
Seoul
Singapore Sydney
City
Toronto
Contents
ACKNOWLEDGMENTS
xvii
INTRODUCTION
PART I
Data
xix
Modeling Concepts
Data-Centric Design
6
6
8
12
12
Visualization
12
Illustration of Alternatives
13
13
Expansion
13
13
Measures of
14
14
Flexible and
15
Adaptable
ix
Easily Understood
Balanced Perspective
Promotion of Data Reusability
Data Integration
How Data Models Fit Into
Application Development
Process-Oriented Methodologies
Data-Oriented Methodologies
Hybrid Methodologies
Object-Oriented Methodologies
Prototyping Methodologies
Agile Methodologies
Data Modeling Participants
Try This 1 -1: Refining a Conceptual Model
Chapter 1 Self Test
2 Relational Model
Conceptual
and
Components
15
15
16
16
16
16
17
17
17
17
18
18
19
20
23
24
Entities
25
Attributes
30
Relationships
32
Business Rules
39
39
Types
Constraints
Integrity
41
43
Constraints
Views
46
48
39
Modeling
Diagramming Alternatives
48
50
S3
54
ERD Formats
54
60
Process Models
63
63
The Flowchart
64
The Function
66
Hierarchy Diagram
Diagram
Diagram
67
68
Contents
Relating
Try
Drawing
72
73
Conceptual
75
Subtypes
3 Self Test
76
81
82
Cycle
Planning
Requirements Gathering
Conceptual Design
Logical Design
Physical Design
84
Construction
90
90
Ongoing Support
91
85
88
89
89
92
Prototyping
Rapid Application Development
The Project Triangle
Try This 4-1: Project Database Management Tasks
Chapter 4 Self Test
92
PART II
5
70
Diagrams
This 3-1:
Chapter
70
Data
Modeling
93
93
94
96
Details
101
The Conceptual
102
Process
Modeling
Preparation
102
Solution Design
105
105
106
106
Subtypes
109
Roles
vs.
Dealing
with Hierarchies,
Bottom
Down
Up
vs.
Top
113
Modeling
118
122
Areas
Subject
Evaluating the
What Makes
This 5-1:
Try
Chapter 5
123
Model
a
Conceptual
Self Test
Model?
123
124
Good
Conceptual
125
xi
xii
Data
Modeling: A Beginner's.Guide
127
130
Insert
Anomaly
130
Delete Anomaly
130
Update Anomaly
Applying the Normalization Process
Choosing a Primary Key
First Normal Form: Eliminating Repeating Data
Second Normal Form: Eliminating Partial Dependencies
131
133
135
137
139
Practice Problems
142
Try This
Tracking
Chapter 6
142
143
143
Books
Company
131
Self Test
146
146
148
151
Advanced Normalization
152
Boyce-Codd
152
Normal Form
155
157
Domain-Key
(DKNF)
Resolving Supertypes and Subtypes
Generalizing Attributes
158
166
166
Crosswalk Tables
167
Normal Form
Language
Translation Tables
158
162
168
169
Chapter 7
171
Self Test
Process
Physical Design
Designing Tables
Try This 8-1: Drawing a Physical Data Model
Implementing Supertypes and Subtypes
Naming Conventions
Integrating Business Rules and Data Integrity
173
174
176
182
183
186
189
191
191
Contents
Referential
(Foreign Key)
Unique Constraints
192
Check Constraints
193
Data
193
191
Constraints
194
194
196
to a
199
Design Alternatives
Implementing
Implementing Constraints
on
205
206
207
207
207
209
210
211
211
212
214
Definitional Rules
214
214
215
Cardinality
Rules
Referential
Integrity
215
Rules
215
Process Rules
Try
198
This 9-1:
215
Modeling
Business Rules
216
Temporal
217
Data Structures
220
220
Structures
Adding History
Processing Rules for History
Handling Deletions
to Data
This 10-1:
Try
Chapter
Temporal
228
230
231
Data
Adding History
10 Self Test
221
228
219
to Data
Structures
233
235
xiii
xiv
Data
11
237
Data Warehouses
239
OLTP
240
245
247
OLAP Database
Requirements
Data Warehouse Modeling
247
Data Mart
250
Modeling
Loading Data into Analytical Databases
12
240
Data Marts
248
257
258
258
259
259
Enterprise
265
Data
Modeling
266
266
267
268
261
an
268
269
272
274
274
Appendixes
A Answers
to Self Tests
B Solutions to
TryThis
Try This
Try This
Try This
Try This
Try This
Try This
Try This
Try This
Try This
279
Exercises
1-1:
313
314
319
6-2:
7-1:
8-1:
Tracking
315
316
317
318
322
324
325
Content?
Try This
Try This
Try This
Try This
Try This
Index
8-2:
326
9-1:
326
327
328
329
331
xv