Fundamentals, Design, and Implementation, 9/e CPE 481 Database Processing Chapter 3 Instructor:Suthep Madarasmi, Ph.D. ดร. สุเทพ มาดารัศมี

Slides:



Advertisements
Similar presentations
Developing ER-Diagram
Advertisements

Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model
Database Systems: Design, Implementation, and Management Tenth Edition
Entity-Relationship Model
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Fundamentals, Design, and Implementation, 9/e COS 346 Day 8.
System Analysis - Data Modeling
Fundamentals, Design, and Implementation, 9/e Chapter 5 Database Design.
Fundamentals, Design, and Implementation, 9/e Chapter 3 Entity-Relationship Data Modeling: Process and Examples Instructor: Dragomir R. Radev Fall 2005.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke Database Processing Tenth Edition Chapter 5 Data.
Review Questions What is data modeling? What is the actual data model that is created called? Data modeling is a technique for organizing and documenting.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 5 Understanding Entity Relationship Diagrams.
Chapter Five Data Modeling with the Entity-Relationship Model.
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 3 The Entity- Relationship Model.
Lecture Fourteen Methodology - Conceptual Database Design
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 6-1 David M. Kroenke’s Chapter Six: Transforming Data Models into Database.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
Data Modeling Entity - Relationship Models. Models Used to represent unstructured problems A model is a representation of reality Logical models  show.
Fundamentals, Design, and Implementation, 9/e COS 346 Day 2.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Fundamentals, Design, and Implementation, 9/e COS 346 Day 3.
CS424 PK, FK, FD Normalization Primary and Foreign Keys Primary and foreign keys are the most basic components on which relational theory is based. Primary.
Chapter Five Data Modeling with the Entity-Relationship Model.
Slide 1 Chapter 05 – Part 1 Data Modeling with the Entity-Relationship Model.
BIS310: Week 7 BIS310: Structured Analysis and Design Data Modeling and Database Design.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
Computer System Analysis Chapter 10 Structuring System Requirements: Conceptual Data Modeling Dr. Sana’a Wafa Al-Sayegh 1 st quadmaster University of Palestine.
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
Conceptual Modeling and Entity-Relationship Diagrams
Advanced Database Course (ESED5204) Eng. Hanan Alyazji University of Palestine Software Engineering Department.
Entity Relationship Diagrams Objectives s Learn the Elements of the E-R model (entities, attributes, and relationships) s Show how to apply the E-R model.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 3/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Database Design Principles – Lecture 3
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
IFS310: Module 6 3/1/2007 Data Modeling and Entity-Relationship Diagrams.
Chapter 3 The Entity-Relationship Model David M. Kroenke Database Processing © 2000 Prentice Hall.
Database Design – Lecture 4 Conceptual Data Modeling.
Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
Fundamentals, Design, and Implementation, 9/e Appendix B The Semantic Object Model.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall, modified by Dr. Lyn Mathis 5-1 David M. Kroenke’s, 10 th ed. Chapter.
Detailed Data Modeling. Outline Data Modeling Modeling Constructs –Entities –Relationships –Cardinality Model Basic Rules Advanced Rules Prototyping Process.
1 Information System Analysis Topic-3. 2 Entity Relationship Diagram \ Definition An entity-relationship (ER) diagram is a specialized graphic that illustrates.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Appendix H: The Semantic Object Model.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Appendix C: E-R Diagrams and The IDEF1X Standard.
Database Design, Application Development, and Administration, 6 th Edition Copyright © 2015 by Michael V. Mannino. All rights reserved. Chapter 5 Understanding.
Lecture # 14 Chapter # 5 The Relational Data Model and Relational Database Constraints Database Systems.
Copyright © 2014 Pearson Canada Inc. 5-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5a Database Design Part 2: Using Information Technology.
Data Modeling Using the Entity- Relationship (ER) Model
Application Extension 5a
Chapter 5 Database Design
Business System Development
Lecture on Data Modeling and Analysis
Database Processing: David M. Kroenke’s Chapter Five:
COS 346 Day 3.
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Data Modeling and the Entity-Relationship Model
Lecture 10 Structuring System Requirements: Conceptual Data Modeling
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
Presentation transcript:

Fundamentals, Design, and Implementation, 9/e CPE 481 Database Processing Chapter 3 Instructor:Suthep Madarasmi, Ph.D. ดร. สุเทพ มาดารัศมี Telephone: Messages: Fax: David M. Kroenke

Database Processing by Suthep Madarasmi Lecture 3/2 A Data Modeling Process  Steps in the data modeling process –Plan project –Determine requirements –Specify entities –Specify relationships –Determine identifiers –Specify attributes –Specify domains –Validate model

Database Processing by Suthep Madarasmi Lecture 3/3 Planning the Project  Obtaining project authorization and budget  Building the project team  Planning the team’s activities  Establishing tools, techniques, and standards for consistent results  Defining the project’s scope

Database Processing by Suthep Madarasmi Lecture 3/4 Determining System Requirements  Sources for data modeling requirements –User interviews and user activity observations –Existing forms and reports –New forms and reports –Existing manual files –Existing computer files/databases –Formally defined interfaces (XML) –Domain expertise  The result of the requirements determination will be a repository of notes, diagram, forms reports, files, etc., that can be used to develop the data model

Database Processing by Suthep Madarasmi Lecture 3/5 Specifying Entities  An entity is something that the users want to track; something the users want to keep data about  Entities –can be physical things or logical concepts –are identifiable; you can tell one from another –are things described by nouns, not characteristics described by adjectives

Database Processing by Suthep Madarasmi Lecture 3/6 Specifying Relationships  Includes: –Identity of the parent and child entities –Relationship type –Minimum and maximum cardinalities –Name of the relationships  Two techniques: –Examine whether a relationship exists between every combination of two entities –Locate relationships from requirement documents  A combination of the two approaches may be used

Database Processing by Suthep Madarasmi Lecture 3/7 Determining Identifiers  Identifier is an attribute or group of attributes that uniquely identifies an entity instance  If there is difficulty specifying an identifier, maybe: –it should be part of a different entity –it is a subtype or category of a common entity –it needs one or more identifying relationships

Database Processing by Suthep Madarasmi Lecture 3/8 Specifying Attributes and Domains  Find attributes on forms, reports, existing files, etc., and add them to entities  Determine whether the attribute has already defined a domain –If so, the attribute is based upon that domain –If not, a new domain is defined  Review the domains and make adjustments as necessary  Domain property inheritance: when the domain properties change, all the attribute properties change as well  Domains may be used to enforce data standards promoting compatible data types and systems  Once all attributes have been specified the model should be reviewed for missing entities

Database Processing by Suthep Madarasmi Lecture 3/9 Validating Model  Data model is a model of humans’ models, not a model of reality  A data model is wrong if it does not accurately reflect the ways the users think about their world  Data models are validated through a series of reviews –Normally, a team review is followed by user reviews  E-R model as well as prototypes of forms and reports may be used to communicate to users features of the data model

Database Processing by Suthep Madarasmi Lecture 3/10 Creating Data Models From Forms and Reports  Example: Single entities

Database Processing by Suthep Madarasmi Lecture 3/11 Example: Identifying Connection Relationships

Database Processing by Suthep Madarasmi Lecture 3/12 Example: Repeating Groups

Database Processing by Suthep Madarasmi Lecture 3/13 Example: Repeating Groups

Database Processing by Suthep Madarasmi Lecture 3/14 Example: Nested Groups 2 ways to Design: 1.2 relations 2.3 relations Which is Better?

Database Processing by Suthep Madarasmi Lecture 3/15 Example: Non-Identifying Connection Relationships  Example: 1:1

Database Processing by Suthep Madarasmi Lecture 3/16 Example: Non-Identifying Connection Relationships

Database Processing by Suthep Madarasmi Lecture 3/17 Example: 1:N

Database Processing by Suthep Madarasmi Lecture 3/18 Example: 1:N

Database Processing by Suthep Madarasmi Lecture 3/19 Example: N:M  Insert Form Page 88. A book may have many authors. An author may have written many books.

Database Processing by Suthep Madarasmi Lecture 3/20 Example: Category Relationship

Database Processing by Suthep Madarasmi Lecture 3/21 Example: Category Relationship

Database Processing by Suthep Madarasmi Lecture 3/22 Sales-Order Model

Database Processing by Suthep Madarasmi Lecture 3/23 Example: Sales Order

Database Processing by Suthep Madarasmi Lecture 3/24 Example: Sales Order  Figure 3-16(c) shows an alternative design that allows an item to appear more than once on a given order

Database Processing by Suthep Madarasmi Lecture 3/25 Example: University System

Database Processing by Suthep Madarasmi Lecture 3/26 University System With Domain Names See Fig 3.26

Database Processing by Suthep Madarasmi Lecture 3/27 E-R Analysis Example 1: Job Application Form  Entity: Person, Applicant (subtype), Spouse (subtype), Mother (subtype), Father (subtype), Children (subtype), Education_History, Work_History, Language_Skills, Computer_Skills Person ApplicantSpouseFatherChild Work History Education History Computer Skills Language Skills Mother * 1..1 Language Skill Code WordAccessExcel 0..* 0..1 Computer Skill Type 0..*

Database Processing by Suthep Madarasmi Lecture 3/28 E-R Analysis Example 2: Payroll Processing  Entity: Employee, Monthly_Wages (subtype), Hourly_Wages (subtype), Work_Times, Regular (subtype), OT1.5, OT2.0, OT3.0, Monthly_Pay Hourly Wage Monthly Wage Work Times * OT3.0OT1.5OT2.0Regular Employee Employee Type Monthly Pay 0..* Hour Type 0..*