McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling.

Slides:



Advertisements
Similar presentations
Entity-Relationship (ER) Modeling
Advertisements

BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Six Blind Men and the Elephant. Basic ERD Symbology EntityRelationship AttributeMultivalued Attribute Associative Entity.
Systems Development Life Cycle
Data Modeling is an Analysis Activity
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
Modeling the Data: Conceptual and Logical Data Modeling
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Database Design & Mapping
System Analysis - Data Modeling
© 2005 by Prentice Hall Chapter 3a Database Design Modern Systems Analysis and Design Fourth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
Entity Relationship Diagrams
Chapter 3: Modeling Data in the Organization
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter 3 © 2005 by Prentice Hall 1 Objectives Definition of terms Definition of terms Importance of data modeling Importance of data modeling Write good.
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Introduction to Databases
Entity-Relationship modeling Transparencies
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Entity Relationship Diagrams (ERDs)
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
Computer System Analysis Chapter 10 Structuring System Requirements: Conceptual Data Modeling Dr. Sana’a Wafa Al-Sayegh 1 st quadmaster University of Palestine.
3.1 CSIS 3310 Chapter 3 The Entity-Relationship Model Conceptual Data Modeling.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Chapter 3: Modeling Data in the Organization
Entity-relationship Modeling Transparencies 1. ©Pearson Education 2009 Objectives How to use ER modeling in database design. The basic concepts of an.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 6 Structuring.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Essentials of Systems Analysis and Design Fourth Edition Joseph S. Valacich Joey F.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Copyright (c) 2014 Pearson Education, Inc. Introduction to Databases.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 7 Structuring System Requirements: Conceptual Data Modeling 7.1.
Concepts and Terminology Introduction to Database.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 2: Modeling Data in the Organization.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
Databases Illuminated Chapter 3 The Entity Relationship Model.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
Entity-Relationship Modeling. 2 Entity Type u Entity type –Group of objects with same properties, identified by enterprise as having an independent existence.
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
Microsoft Access 2010 Chapter 11 Database Design.
Copyright © 2016 Pearson Education, Inc. Modern Database Management 12 th Edition Jeff Hoffer, Ramesh Venkataraman, Heikki Topi CHAPTER 2: MODELING DATA.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Chapter 3: Modeling Data in the Organization
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Business System Development
TMC2034 Database Concept and Design
SEEM3430: Information Systems Analysis and Design
Chapter 6 Structuring System Requirements: Conceptual Data Modeling
Chapter 7 Structuring System Requirements: Conceptual Data Modeling
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 4 Entity Relationship (ER) Modeling
Entity-Relationship Diagram (ERD)
Lecture 10 Structuring System Requirements: Conceptual Data Modeling
Presentation transcript:

McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Modeling the Data: Conceptual and Logical Data Modeling

6-2 Learning Objectives Understand the basic objectives of conceptual and logical data modeling Become familiar with the components of the ERD Understand relationships and the concepts of degree, cardinality, and optionality

6-3 Learning Objectives Learn the basic characteristics of a good data model Understand the process of data normalization and the concept of functional dependency Understand when the normalization process may negatively impact actual system performance

6-4 Objectives of Data Modeling Conceptual Data Model –Shows how the business world sees information. –Suppresses non-critical details to emphasize business rules and user objects. Logical Data Model –Mathematics of data sciences –Conform to relational theory

6-5 Entity Relationship Diagram Represents data entities associated with a system or business environment, the relationship among those entities, and the specific attributes of both the entities and their relationships

6-6 Figure 6-2. Basic Symbols for Constructing ERD

6-7EntitiesEntities Represented by a rectangle on the ERD Represent data which could be people, places, objects, event, concepts, or whatever else an organization wishes to maintain data about.

6-8EntitiesEntities Characteristics –It can be distinguished from all of the other entities in the business environment by some set of identifying characteristics or attributes. –It represents a class of things that can occur more than once within the business environment.

6-9EntitiesEntities Entity type –A collection of entities that all share one or more common properties or attributes. Entity instance –Represents a single, unique occurrence of a member of an entity type.

6-10AttributesAttributes Represented by an oval or ellipse on the ERD A characteristic of an entity or a relationship Example: The entity STUDENT could be described by attributes such as NAME, ADDRESS, ID NUMBER, MAJOR, etc.

6-11 Key Attributes An unique identifier of an entity Can be a single attribute, or group of attributes Example: The entity PRODUCT might be uniquely identified by a key PRODUCT ID

6-12 Key Attributes Concatenated or Combination Key –More than one attribute is used to create a key for an instance Candidate Key –A candidate to become the primary identifier –Example: The entity STUDENT could be uniquely identified by SSN, STUDENT ID, or ADDRESS

6-13 Table 6-1. Criteria for Selecting a Primary Key From a List of Candidate Keys

6-14 Multivalued Attributes Multiple values for a single entity instance Example: the attribute TRAINING of the entity EMPLOYEE can have more than one value at any given time All multi-valued attributes must be transformed in a special manner during data normalization.

6-15RelationshipsRelationships Association between one or more entities Relationship between STUDENT and COURSE entities –A STUDENT may be enrolled in zero, one, or more COURSES, and a COURSE may be taken by zero, one, or more STUDENTS

6-16 Figure 6-3. Typical Business Relationships between Two Entities

6-17RelationshipsRelationships Three basic characteristics of complexity –Cardinality –Optionality –Degree

6-18 Cardinality and Optionality Cardinality –The number of instances of one entity to an instance of another entity Optionality –The degree to which a particular relationship is mandatory or optional

6-19 Table 6-2. Cardinality and Optionality of Relationships

6-20 Cardinality and Optionality One-to-one relationship One-to-many relationship Many-to-many relationship

6-21 Figure 6-4. Examples of Various Relationship Complexities

6-22 Relationship Degree The number of entities participating in the relationship –Unary –Binary –Ternary

6-23 Relationship Degree –Unary or recursive relationship: relationship between unique instance of a single entity and has a degree value equal to one (Figure 6-5) –Binary relationship: a relationship with a degree equal to 2 (Figure 6-6) –Ternary relationship: a relationship with a degree value equal to 3 (Figure 6-7)

6-24 Figure 6-5. Example of Common Unary Relationships

6-25 Figure 6-6. Examples of Common Binary Relationships

6-26 Figure 6-7. Example of a Ternary Relationship

6-27 Associative Entities The existence of a many-to-many relationship results in several attributes of the two entity types being closely related (Figure 6-8a). An associative entity is created for the above situation (Figure 6-8b).

6-28 Figure 6-8. Example of an Associative Entity

6-29 Interpreting the ERD A simple set of rules can be applied to insure that all relationships on an ERD are easy to translate into verbal form (Figure 6-9).

6-30 Figure 6-9. General Syntax for Reading Relationships

6-31 General Procedure for Identifying Entities and their Relationships

6-32 Logical Data Modeling Formal structuring of the data into a more stable and desirable form through a process called normalization Development of a data model to accurately reflect the actual data needs Development of a data model that allows for the construction of a physical database design

6-33 Characteristics of a Good Data Model

6-34 The Relational Data Model Organize data using tables called relations –Relation: a two-dimensional table of data Each table consists of named columns and unnamed row

6-35 Table 6-5. Example of a Relation for STUDENT

6-36 Data Normalization Organize data attributes in the logical data model so that they are grouped in a stable and flexible manner. Based on the functional dependence concept.

6-37 Functional Dependency Relationship between two attributes –For any relation R, attribute B is functionally dependent on attribute A if, for every valid instance of A, that value of A uniquely determines the value of B.

6-38 Normal FormDescription First Normal Form (1NF) A relation is in 1NF if it contains no repeating data elements. Second Normal Form (2NF) A relation is in 2NF if it is in 1NF and contains no partial functional dependencies. Third Normal Form (3NF) A relation is in 3NF if it is in 2NF and contains no transitive dependencies. Table 6-6. The Three Common Normalized Forms

6-39 First Normal Form (1NF) Contains no repeating elements –any entity that contains one or more multivalued attributes must be transformed Figure 6-10

6-40 Figure The Three Common Normalized Forms

6-41 Second Normal Form (2NF) A relation is in 1NF and it contains no partial functional dependencies. Partial functional dependency exists when one or more of the nonkey attributes can be defined by less than the full primary key.

6-42 Figure Second Normal Form

6-43 Third Normal Form (3NF) A relation is in 2NF and no transitive dependencies exist. –Transitive Dependency: when one or more nonkey attributes can be derived from one or more other nonkey attributes

6-44 Figure Third Normal Form

6-45 The fully Normalized ERD Shows all the entities, their attributes, and their relationships to all other entities. From the logical data model, the physical model of the database can be easily constructed.

6-46DenormalizationDenormalization The normalized set of relations may actually create certain potential inefficiencies in the final database. Denormalization addresses performance problem associated with stable, normalized relations.

6-47 Figure Example of Denormalization

6-48 Figure Fully Normalized ERD

6-49 Chapter Summary The relational model is already evolving to include object technologies and features and should be quite capable of meeting the increased demands for object-oriented design approaches.

McGraw-Hill/Irwin Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 End of Chapter