Data Model Patterns David C. Haypdf download
Data Model Patterns David C. Haypdf download
or textbooks at https://ebookultra.com
_____ Follow the link below to get your download now _____
https://ebookultra.com/download/data-model-patterns-david-c-
hay/
https://ebookultra.com/download/regenerative-medicine-stem-cells-and-
the-liver-1st-edition-david-c-hay/
https://ebookultra.com/download/practical-immunology-4th-edition-
frank-c-hay/
https://ebookultra.com/download/political-analysis-1st-publ-edition-
hay/
Data structures using C 1st Edition Patil
https://ebookultra.com/download/data-structures-using-c-1st-edition-
patil/
https://ebookultra.com/download/data-structures-using-c-c-2nd-edition-
edition-aaron-m-tenebaum/
https://ebookultra.com/download/pro-objective-c-design-patterns-for-
ios-1st-edition-carlo-chung-auth/
https://ebookultra.com/download/integrating-omics-data-1st-edition-
george-c-tseng/
Data Model Patterns: A Metadata Map Information Modeling and Relational Understanding SQL’s Stored Procedures:
David Hay Databases: From Conceptual Analysis to A Complete Guide to SQL/PSM
Logical Design Jim Melton
Data Mining: Concepts and Techniques,
Terry Halpin
Second Edition Principles of Multimedia Database
Jiawei Han and Micheline Kamber Component Database Systems Systems
Edited by Klaus R. Dittrich and V. S. Subrahmanian
Querying XML: XQuery, XPath, and
Andreas Geppert
SQL/XML in Context Principles of Database Query Processing
Jim Melton and Steve Buxton Managing Reference Data in Enterprise for Advanced Applications
Databases: Binding Corporate Data to the Clement T. Yu and Weiyi Meng
Joe Celko’s SQL for Smarties: Advanced
Wider World
SQL Programming, Third Edition Advanced Database Systems
Malcolm Chisholm
Joe Celko Carlo Zaniolo, Stefano Ceri,
Understanding SQL and Java Together: Christos Faloutsos, Richard T. Snodgrass,
Moving Objects Databases
A Guide to SQLJ, JDBC, and Related V. S. Subrahmanian, and Roberto Zicari
Ralf Güting and Markus Schneider
Technologies
Principles of Transaction Processing
Foundations of Multidimensional and Jim Melton and Andrew Eisenberg
Philip A. Bernstein and Eric Newcomer
Metric Data Structures
Database: Principles, Programming,
Hanan Samet Using the New DB2: IBMs Object-Relational
and Performance, Second Edition
Database System
Joe Celko’s SQL Programming Style Patrick and Elizabeth O’Neil
Don Chamberlin
Joe Celko
The Object Data Standard:
Distributed Algorithms
Data Mining, Second Edition: Concepts ODMG 3.0
Nancy A. Lynch
and Techniques Edited by R. G. G. Cattell and
Ian Witten and Eibe Frank Douglas K. Barry Active Database Systems: Triggers and
Rules For Advanced Database
Fuzzy Modeling and Genetic Algorithms Data on the Web: From Relations to
Processing
for Data Mining and Exploration Semistructured Data and XML
Edited by Jennifer Widom and
Earl Cox Serge Abiteboul, Peter Buneman,
Stefano Ceri
and Dan Suciu
Data Modeling Essentials, Third Edition
Migrating Legacy Systems: Gateways,
Graeme C. Simsion and Graham C. Witt Data Mining: Practical Machine Learning
Interfaces, & the Incremental Approach
Tools and Techniques with Java
Location-Based Services Michael L. Brodie and Michael Stonebraker
Implementations
Jochen Schiller and Agnès Voisard
Ian Witten and Eibe Frank Atomic Transactions
Database Modeling with Microsft® Visio Joe Celko’s SQL for Smarties: Advanced
Nancy Lynch, Michael Merritt,
for Enterprise Architects William Weihl, and Alan Fekete
SQL Programming, Second Edition
Terry Halpin, Ken Evans, Patrick Hallock, Joe Celko Query Processing for Advanced Database
Bill Maclean Systems
Joe Celko’s Data and Databases: Concepts
Designing Data-Intensive Web Applications Edited by Johann Christoph Freytag,
in Practice
Stephano Ceri, Piero Fraternali, David Maier, and Gottfried Vossen
Joe Celko
Aldo Bongio, Marco Brambilla, Transaction Processing: Concepts and
Sara Comai, and Maristella Matera Developing Time-Oriented Database
Techniques
Applications in SQL
Mining the Web: Discovering Knowledge Jim Gray and Andreas Reuter
Richard T. Snodgrass
from Hypertext Data Building an Object-Oriented Database
Soumen Chakrabarti Web Farming for the Data Warehouse
System: The Story of O2
Richard D. Hackathorn
Advanced SQL: 1999—Understanding Edited by François Bancilhon, Claude Delobel,
Object-Relational and Other Advanced Management of Heterogeneous and Paris Kanellakis
Features and Autonomous Database
Systems Database Transaction Models for Advanced
Jim Melton Applications
Edited by Ahmed Elmagarmid,
Database Tuning: Principles, Experiments, Marek Rusinkiewicz, and Edited by Ahmed K. Elmagarmid
and Troubleshooting Techniques Amit Sheth A Guide to Developing Client/Server
Dennis Shasha and Philippe Bonnet
Object-Relational DBMSs: Tracking the SQL Applications
SQL: 1999—Understanding Relational Next Great Wave, Second Edition Setrag Khoshafian, Arvola Chan, Anna Wong,
Language Components Michael Stonebraker and Paul Brown, and Harry K. T. Wong
Jim Melton and Alan R. Simon with Dorothy Moore The Benchmark Handbook for Database
Information Visualization in Data Mining A Complete Guide to DB2 Universal and Transaction Processing Systems,
and Knowledge Discovery Database Second Edition
Edited by Usama Fayyad, Georges G. Don Chamberlin Edited by Jim Gray
Grinstein, and Andreas Wierse
Universal Database Management: Camelot and Avalon: A Distributed
Transactional Information Systems: Theory, A Guide to Object/Relational Transaction Facility
Algorithms, and Practice of Concurrency Technology Edited by Jeffrey L. Eppinger, Lily B.
Control and Recovery Cynthia Maro Saracco Mummert, and Alfred Z. Spector
Gerhard Weikum and Gottfried Vossen
Readings in Database Systems, Readings in Object-Oriented Database
Spatial Databases: With Application to GIS Third Edition Systems
Philippe Rigaux, Michel Scholl, and Edited by Michael Stonebraker and Edited by Stanley B. Zdonik and
Agnes Voisard Joseph M. Hellerstein David Maier
DATA MODEL PATTERNS
A Metadata Map
David C. Hay
Essential Strategies, Inc.
AMSTERDAM BOSTON
HEIDELBERG LONDON
NEW YORK OXFORD PARIS
SAN DIEGO SAN FRANCISCO
SINGAPORE SYDNEY TOKYO
Publisher Diane D. Cerra
Assistant Editor Asma Stephan
Editorial Intern Marisa Crawford
Publishing Services Manager George Morrison
Project Manager Marilyn E. Rash
Cover Design Hannus Design
Cover Image Aristotle with a Bust of Homer, 1653 (Oil on canvas)
Rembrandt Harmensz van Rijn (1606–1669 Dutch)
Metropolitan Museum of Art, New York, USA
Composition Cepha Imaging Pvt. Ltd.
Technical Illustrations Dartmouth Publishing Inc.
Indexer Kevin Broccoli
Interior printer Courier Westford
Cover printer Phoenix Color Corp.
Morgan Kaufmann Publishers is an imprint of Elsevier.
500 Sansome Street, Suite 400, San Francisco, CA 94111
Designations used by companies to distinguish their products are often claimed as trademarks or registered
trademarks. In all instances in which Morgan Kaufmann Publishers is aware of a claim, the product names
appear in initial capital or all capital letters. Readers, however, should contact the appropriate companies for
more complete information regarding trademarks and registration.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by
any means—electronic, mechanical, photocopying, scanning, or otherwise—without prior written permission
of the publisher.
Permissions may be sought directly from Elsevier’s Science & Technology Rights Department in Oxford, UK:
phone: (+44) 1865 843830, fax: (+44) 1865 853333, E-mail: [email protected]. You may also complete
your request on-line via the Elsevier homepage (http://elsevier.com), by selecting “Support & Contact” then
“Copyright and Permission” and then “Obtaining Permissions.”
QA76.9.D37.H38 2006
005.74–dc22 2006011123
For information on all Morgan Kaufmann publications, visit our Web site at www.mkp.com or
www.books.elsevier.com
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Foreword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
CHAPTER 2: DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
ix
x CONTENTS
Authorship . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Document Distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Coverage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
The Dublin Core . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Data Stewardship . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
ROW THREE: THE ENTITY-RELATIONSHIP DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Sample Entity-Relationship Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Entity Classes and Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Relationships and Relationship Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Entity Class Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
About Reference Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
ROW FOUR: DATA DESIGN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Relational Database Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Object-Oriented Data Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
ROW SIX: THE PRODUCTION SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
Influencers and Assessments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
Directive Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
Activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
ROW THREE: THE ARCHITECT’S VIEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
About Business Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
Sample Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
Domains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307
System Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
Business Rule Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
Parties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
Data Quality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
ROW FOUR: THE DESIGNER’S VIEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322
Sample Database Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
Database Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
Object-Oriented Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336
Data Quality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
ROW SIX: MEASURING DATA QUALITY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
GLOSSARY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397
PREFACE
ABOUT METADATA
Twenty years ago, when I started working as a consultant with the Oracle
Corporation, I learned a particular style of data modeling. I had done database
design for many years before that, and often illustrated my designs with draw-
ings. The particular flavor of modeling I learned at Oracle, however, was very
different. For the first time, I was modeling the structure—the language—of a
company, not just the structure of a database. How does the organization under-
stand itself and how can I represent that so that we can discuss the information
requirements?
Thanks to this approach, I was able to go into a company in an industry about
which I had little or no previous knowledge and, very quickly, to understand the
underlying nature and issues of the organization—often better than most of the
people who worked there. Part of that has been thanks to the types of questions
data modeling forces me to ask and answer. More than that, I quickly discovered
common patterns that apply to all industries.
It soon became clear to me that what was important in doing my work effi-
ciently was not conventions about syntax (notation) but rather conventions about
semantics (meaning). This was the source of my first book, Data Model Pat-
terns: Conventions of Thought. I had discovered that nearly all commercial and
governmental organizations—in nearly all industries—shared certain semantic
structures, and understanding those structures made it very easy to understand
quickly the semantics that were unique to each.
The one industry that has not been properly addressed in this regard, however,
is our own—information technology. This is at least partly because the patterns
that address most businesses are not as helpful to the understanding this one.
Where a business model represents the semantics of a business, what we need are
xiii
xiv PREFACE
models that represent semantics itself. We need models of the models we use to
describe the business. This is more difficult.
Our industry also has not been properly addressed for the same reason many
companies do not have data models: we have not seen the need. Just as the idea
of modeling an organization’s data seems a little too arcane for many business
people, so too the idea of modeling information technology data seems too strange
for many of us. But the need is definitely there. Just as it is essential for an
organization to better understand the underlying nature of its data (and through
that the underlying nature of its own structure) if it is to acquire and use systems
successfully to meet its customers’ needs, so too is it essential for us to understand
the underlying nature of our data (and through that the underlying nature of our
industry’s own structure) if we are to be successful in producing information
systems products for our customers.
As you will see, some of the semantic patterns are in fact the same for infor-
mation technology as they are for any other industry. Most notably, people and
organizations are components of the information technology world, just as they
are at the heart of any business. Similarly, locating programs and data in the
information technology world is not that different from locating products and
customers in the business world. Beyond these topics, however, the model in this
book is very different from a typical commercial model. Whereas a business is
concerned with modeling products and processes, our model is concerned with
modeling the concepts for describing a product or process.
Aristotle called his work “Meta” physics, simply because it was the one he
wrote after writing the one on physics, the word meta being Greek for “after”.
This book could also be about a “meta” model simply because I am creating it
after years of creating business models. But it is more than that. Because of the
strange nature of Aristotle’s metaphysics, the word meta came to mean “above”
or “beyond”. Because of the strange nature of this model, I am sure no one will
argue against applying the word in this more cosmic sense.
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must,
at no additional cost, fee or expense to the user, provide a copy,
a means of exporting a copy, or a means of obtaining a copy
upon request, of the work in its original “Plain Vanilla ASCII” or
other form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookultra.com