- •Contents
- •Preface
- •Intended Audience
- •About this Guide
- •Typographical Conventions
- •Related Documentation
- •What’s In This Chapter?
- •Chapter Contents
- •What is Data Modeling?
- •Data Modeling Sessions
- •Session Roles
- •Sample IDEF1X Modeling Methodology
- •Logical Models
- •The Entity Relationship Diagram
- •The Key-Based Model
- •The Fully-Attributed (FA) Model
- •Physical Models
- •The Transformation Model
- •The DBMS Model
- •Benefits of Modeling in ERwin
- •What’s In This Chapter?
- •Chapter Contents
- •The Entity-Relationship Diagram
- •Defining Entities and Attributes
- •Logical Relationships
- •Many-to-Many Relationships
- •Validating the Design of the Logical Model
- •Data Model Example
- •What’s In This Chapter?
- •Chapter Contents
- •Understanding Keys
- •Selecting a Primary Key
- •Designating Alternate Key Attributes
- •Inversion Entry Attributes
- •Relationships and Foreign Key Attributes
- •Dependent and Independent Entities
- •Identifying Relationships
- •Non-Identifying Relationships
- •Rolenames
- •What’s In This Chapter?
- •Chapter Contents
- •Naming Entities and Attributes
- •Synonyms, Homonyms and Aliases
- •Entity Definitions
- •Descriptions
- •Business Examples
- •Comments
- •Definition References and Circularity
- •Constructing a Business Glossary
- •Attribute Definitions
- •Rolenames
- •Definitions and Business Rules
- •What’s In This Chapter?
- •Chapter Contents
- •Relationship Cardinality
- •Cardinality in Non-Identifying Relationships
- •Referential Integrity
- •Reading Referential Integrity Options
- •RI, Cardinality, and Identifying Relationships
- •RI, Cardinality, and Non-Identifying Relationships
- •Additional Relationship Types
- •Many-to-Many Relationships
- •N-ary Relationships
- •Recursive Relationships
- •Subtype Relationships
- •Complete Versus Incomplete Subtype Structures
- •Inclusive and Exclusive Relationships
- •IDEF1X and IE Subtype Notation
- •When to Create a Subtype Relationship
- •Introduction
- •Chapter Contents
- •Overview of the Normal Forms
- •Functional Dependence (FD)
- •Full Functional Dependence
- •First Normal Form (1NF)
- •Second Normal Form (2NF)
- •Third Normal Form (3NF)
- •Common Design Problems
- •Repeating Data Groups
- •Multiple Use of the Same Attribute
- •Multiple Occurrences of the Same Fact
- •Conflicting Facts
- •Derived Attributes
- •Missing Information
- •Unification
- •How Much Normalization Is Enough?
- •Conclusions
- •ERwin Support for Normalization
- •First Normal Form Support
- •Second and Third Normal Form Support
- •What’s In This Chapter?
- •Chapter Contents
- •Creating a Physical Model
- •Denormalization
- •Classification of Dependent Entities
- •Glossary of Terms
- •Index
- •Documentation Comments Form
ERwin Methods Guide
Preface
Welcome to data modeling with ERwin. If you have never seen a model before, the ERwin Methods Guide will help you understand what a model is, and what it is good for. If you already have some experience with data and data models, you know how useful they can be in understanding the requirements of your business. A model can help if you are designing new information systems or are maintaining and modifying existing ones.
Data modeling is not something that can be covered in a lot of detail in a short document like this one. But by the time you have read it, you will understand enough, even if you are just a beginner, to put ERwin’s methods to work for you. Overall, the ERwin Methods Guide has the following purposes:
♦To provide a basic level of understanding of the data modeling method used by ERwin that is sufficient to do real database design.
♦To introduce some of the descriptive power and richness of the IDEF1X and IE modeling languages supported by ERwin and to provide a foundation for future learning.
♦To provide additional information that lets you to better understand ERwin’s modeling features.
This document covers the methods of data modeling supported by ERwin, which include:
♦IDEF1X. The IDEF1X method was developed by the U.S. Air Force. It is now used in various governmental agencies, in the aerospace and financial industry, and in a wide variety of major corporations.
♦IE (Information Engineering). The IE method was developed by James Martin, Clive Finkelstein, and other IE authorities and is widely deployed in a variety of industries.
Both methods are suited to environments where large scale, rigorous, enterprise-wide data modeling is essential.
Contents ∙ iii
ERwin Methods Guide
Intended Audience
This manual is intended for:
♦Novice database designers and data modelers — as a primer on data modeling, and as a guide to using the ERwin methods.
♦Experienced data modelers and applications developers — as a guide to IDEF1X and IE data modeling in ERwin.
♦Experienced IDEF1X or IE users — as a guide to the features of IDEF1X and/or IE supported by ERwin, and the mapping between these methods.
About this Guide
This document contains seven chapters, an appendix, a glossary, and an index:
♦Chapter 1 describes data modeling, provides a sample methodology for creating a data model, and the benefits of modeling in ERwin.
♦Chapter 2 describes the creation of an entity-relationship diagram (ERD) and explains both the process and validation of the model. This chapter also introduces the ideas of entities, attributes, and relationships.
♦Chapter 3 explains the concept of keys, including candidate keys, primary and alternate keys, inversion entries, migration of foreign keys, and the use of rolenames.
♦Chapter 4 explains the importance of creating accurate names and definitions for entities, attributes, and rolenames in the logical model.
♦Chapter 5 provides additional information about entity relationships, including relationship cardinality, referential integrity. This chapter also describes additional relationship types, such as many-to-many, n-ary, recursive, and subtype relationships.
♦Chapter 6 defines normalization and the six normal forms of database design. This chapter also provides solutions to a number of common design problems, and describes ERwin’s support for normalization.
♦Chapter 7 describes physical model constructs and the creation of the physical model from a logical model in ERwin.
♦Appendix A describes the types of dependent entities, including characteristic, associative, designative, and subtype entities, and their use in a logical model.
iv ∙ Contents
ERwin Methods Guide
Typographical Conventions
The ERwin Methods Guide uses some special typographic conventions to identify ERwin user interface controls and key terms that appear in the text.
Text Item |
Convention |
Example |
New and important |
Bold italics |
normalization |
terms |
|
|
Entity Name |
All uppercase; followed by the word |
MOVIE COPY entity |
|
“entity” in lower case |
|
Attribute Name |
All lowercase in quotation marks; |
“movie-name” |
|
hyphen replaces embedded space(s). |
|
Column Name |
All lowercase. |
movie_name |
Table Name |
All uppercase. |
MOVIE_COPY |
Verb Phrase |
All lowercase in angle brackets. |
<is available for rental as> |
|
|
|
Related Documentation
The ERwin documentation set includes the following print and online manuals:
♦ERwin Online Help
♦ERwin Methods Guide (this guide)
♦ERwin Reference Guide
♦ERwin Features Guide
♦ERwin Workgroup Modeling Guide
♦Logic Works RPTwin User’s Guide
Contents ∙ v
ERwin Methods Guide
vi ∙ Contents
