Skip to Content
The Data Model Resource Book, Volume 3: Universal Patterns for Data Modeling
book

The Data Model Resource Book, Volume 3: Universal Patterns for Data Modeling

by Paul Agnew, Len Silverston
January 2009
Beginner to intermediate
641 pages
26h 48m
English
Wiley
Content preview from The Data Model Resource Book, Volume 3: Universal Patterns for Data Modeling
Silverston c07.tex V2 - 11/20/2008 5:44pm Page 396
396 Chapter 7 Contact Mechanisms: How to Get in Touch
NOTE
You could expand this pattern to also record the rules about the
allowable ways that POSTAL ADDRESS PART(s) and GEOGRAPHIC BOUNDARY(s)
are related to each other within a COUNTRY. This would provide a data model that
could be used to validate that addresses have a valid structure. For instance, in the
United States of America, the postal address always uses cities that are within
states that are within countries. You could use the rule patterns that are discussed
in Chapter 8 to add a data model structure (with a POSTAL ADDRESS RULE entity
that has relationships to GEOGRAPHIC BOUNDARY TYPE(s) and POSTAL ADDRESS
PART TYPE(s)) to accommodate this or use the Level 3 Recursive Pattern with Rules
described in Chapter 4.
To illustrate this pattern take a look at Table 7-19. If you look at the p ostal
address with the contact mechanism id of ‘‘901’’ (the first seven rows of the
illustration table), you can see that it is made of many different POSTAL
ADDRESS PART(s): ‘‘91001’’ (‘‘100 Main Street’’), ‘‘91002’’ (‘‘Suite 819’’),
‘‘91003’’ (‘‘The Coalman Building’’), and a number of other parts that are
related to various geographic boundaries. In Table 7-19, you see that the
postal address part of ‘‘91001’’ is ‘‘100 Main Street’’ of type ‘‘Street address’’
meaning it is a number (and/or text, such ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Data Model Resource Book, Vol. 2: A Library of Data Models for Specific Industries

The Data Model Resource Book, Vol. 2: A Library of Data Models for Specific Industries

Len Silverston
The Data Model Resource Book, Volume 1

The Data Model Resource Book, Volume 1

Len Silverston, Graeme Simsion
Data Model Patterns

Data Model Patterns

David C. Hay, Richard Barker

Publisher Resources

ISBN: 9780470178454Other