

























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


























Learning Objectives
Guidelines for Analyzing Business Information Needs
Summary of Analysis Guidelines
Analysis of the Information Requirements for the Water Utility Database
Refinements to an ERD
Refinements to an ERD
Refinements to an ERD
Refinements to an ERD
Summary of Transformations
Detecting Common Design Errors Incorrect Cardinalities The typical error involves the usage of a 1 - M relationship instead of an M-N relationship. This error can be caused by an omission in the requirements. For example, if the requirements just indicate that work assignments involve a collection of employees, you should not assume that an employee can be related to just one work assignment. You should gather additional requirements to determine if an employee can be associated with multiple work assignments. Other incorrect cardinality errors that you should consider are reversed cardinalities ( 1 - M relationship should be in the opposite direction) and errors on a minimum cardinality. The error of reversed cardinality is typically an oversight. Overuse of Specialized Data Modeling Constructs Generalization hierarchies and M-way associative entity types are specialized data modeling constructs. A typical novice mistake is to use them inappropriately. You should not use generalization hierarchies just because an entity can exist in multiple states. For example, the requirement that a project task can be started, in process, or complete does not indicate the need for a generalization hierarchy. If there is an established classification and specialized attributes and relationships for subtypes, a generalization hierarchy is an appropriate tool.
Detecting Common Design Errors ļ§ Redundant Relationships Cycles in an ERD may indicate redundant relationships. A cycle involves a collection of relationships arranged in a loop starting and ending with the same entity type. For example in Figure 6. 10 , there is a cycle of relationships connecting Customer, Bill, Reading, and Meter. In a cycle, a relationship is redundant if it can be derived from other relationships. For the SentTo relationship, the bills associated with a customer can be derived from the relationships Uses, ReadBy, and Includes. In the opposite direction, the customer associated with a bill can be derived from the Includes, ReadBy, and Uses relationships. Although a bill can be associated with a collection of readings, each associated reading must be associated with the same customer. Because the SentTo relationship can be derived, it is removed in the final ERD.
Converting an ERD to Relational Tables (Logical Design)