IS 421 Information Systems Analysis James Nowotarski 14 October 2002.

Slides:



Advertisements
Similar presentations
Chapter # 4 BIS Database Systems
Advertisements

© Copyright 2011 John Wiley & Sons, Inc.
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
IS 421 Information Systems Analysis James Nowotarski 28 October 2002.
Copyright Irwin/McGraw-Hill Data Modeling Prepared by Kevin C. Dittman for Systems Analysis & Design Methods 4ed by J. L. Whitten & L. D. Bentley.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
IS 421 Information Systems Analysis James Nowotarski 7 October 2002.
ISMT221 Information Systems Analysis and Design Entity-Relationship Diagram Lab 4 Tony Tam.
System Analysis - Data Modeling
Systems Analysis Requirements structuring Process Modeling Logic Modeling Data Modeling  Represents the contents and structure of the DFD’s data flows.
Entity Relationship Diagrams Basic Elements and Rules.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Data.
IS 421 Information Systems Management James Nowotarski 16 September 2002.
IS 421 Information Systems Analysis James Nowotarski 21 October 2002.
The Relational Database Model:
Data Modeling Advanced Concepts.
Entity Relationship Diagrams
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Modeling & Designing the Database
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
The Relational Database Model
Computer System Analysis Chapter 10 Structuring System Requirements: Conceptual Data Modeling Dr. Sana’a Wafa Al-Sayegh 1 st quadmaster University of Palestine.
File and Database Design SYS364. Today’s Agenda WHTSA DBMS, RDBMS, SQL A place for everything and everything in its place. Entity Relationship Diagrams.
1. 2 Data Modeling 3 Process of creating a logical representation of the structure of the database The most important task in database development E-R.
PowerPoint Presentation for Dennis, Wixom, & Roth Systems Analysis and Design, 3rd Edition Copyright 2006 © John Wiley & Sons, Inc. All rights reserved..
Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
Systems analysis and design, 6th edition Dennis, wixom, and roth
Chapter 4 The Relational Model.
Business Process Modeling
A Guide to SQL, Eighth Edition Chapter Two Database Design Fundamentals.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
BIS 360 – Lecture Six (Part 2) Conceptual Data Modeling (Chapter 10 and partial Chapter 12)
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
Concepts and Terminology Introduction to Database.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
1 A Guide to MySQL 2 Database Design Fundamentals.
Concepts of Relational Databases. Fundamental Concepts Relational data model – A data model representing data in the form of tables Relations – A 2-dimensional.
The Relational Database Model
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 4 Entity Relationship (ER) Modeling.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
C-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
Database Design – Lecture 5 Conceptual Data Modeling – adding attributes.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
IFS310: Module 6 3/1/2007 Data Modeling and Entity-Relationship Diagrams.
Description and exemplification of entity-relationship modelling.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 4 ENTITY RELATIONSHIP (ER) MODELING Instructor Ms. Arwa Binsaleh 1.
Database Design – Lecture 4 Conceptual Data Modeling.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
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.
BTM 382 Database Management Chapter 5: Advanced Data Modeling
Systems Analysis and Design
Tables and Their Characteristics
Database Design – Lecture 4
Introduction to MS Access: creating tables, keys, and relationships
Data Modelling Chapter 7
Review of Week 1 Database DBMS File systems vs. database systems
Entity-Relationship Diagram (ERD)
Review of Week 3 Relation Transforming ERD into Relations
Lecture 10 Structuring System Requirements: Conceptual Data Modeling
Presentation transcript:

IS 421 Information Systems Analysis James Nowotarski 14 October 2002

Recap basics of data modeling Understand more advanced data modeling concepts: –Special types of entities –Foreign keys –Normalization (time permitting, intro only) Today’s Objectives

Course Map Contents 1. Introduction Planning Phase 2. Project Initiation 3. Project Management Analysis Phase 4. Systems Analysis 5. Gathering Information 6. Process Modeling 7. Data Modeling Assignments Quizzes Final Week Core Exam Review

Topic Duration Recap Last Week20-30 minutes Homework30-40 minutes *** Break15 minutes Foreign keys30 minutes Special entity types30 minutes Data Modeling: Group Exercises45 minutes Assignment 3 Intro10 minutes Today’s agenda

SDLC The systems development life cycle (SDLC) is a description of the phases of an information system PlanningAnalysisDesign Implementation

Data Modeling in the Analysis Phase From Planning Phase: System request Feasibility analysis Workplan. Dev Analysis Plan Examine- As-is Identify Improve- ments Develop Basic System Concepts Develop Data Model Develop Process Model Prepare Proposal To Design Phase: Deliverables: Analysis PlanFunctional Requirements Quality Requirements System Concept Data Model Process Model System Proposal Develop Concept for To-Be System

Topic Duration Recap Last Week20-30 minutes Homework30-40 minutes *** Break15 minutes Foreign keys30 minutes Special entity types30 minutes Data Modeling: Group Exercises45 minutes Assignment 3 Intro10 minutes Today’s agenda

Key Definitions A data model is a –Formal representation of the data to be used for a business system. A data model should illustrate: –The people, places and things about which data is collected, –And how they are related to each other

Key Definitions A logical data model shows the logical organization of data –Without regard for how data gets stored, created or manipulated A physical data model shows how the data will physically be stored in the database (secondary memory). –E.g. Oracle may store a customer table in several files (cust1.dbf, cust2.dbf…) that span several hard drives.

Data Modeling Entity-relationship diagram (ERD) Entity descriptions Attribute descriptions Relationship descriptions Domain descriptions (not covered here) A logical data model deliverable includes an ERD and descriptions of entities, attributes, and relationships Components of a Logical Data Model

Entities and Instances Instances are occurrences of an entity

Examples of Attributes Entity: Person –Attributes: first_name last_name eye_color date_of_birth address Entity: Classroom –Attributes: room_no max_capacity

Depicting Entities, Attributes and Identifiers Entity name Attributes Identifier Or, use cd_id (PK)

Relationships Relationships represent connections, links, or associations between entities e.g., Patient-Appointment Relationships have some important properties: 1.Names, that should be active verbs –(A patient schedules appointments) 2.Cardinality 3.Modality.

Cardinality Cardinality refers to the number of times instances in one entity can be related to instances in another entity –One instance in an entity refers to one and only one instance in the related entity (1:1) –One instance in an entity refers to one or more instances in the related entity (1:M) –One or more instances in an entity refer to one or more instances in the related entity (M:M)

Modality Modality refers to the minimum number of times that an instance in one entity can be related to an instance in another entity –One means that an instance in the related entity must exist for an instance in another entity to be valid –Zero means that no instance in the related entity is necessary for an instance in another entity to be valid

Meanings of the Crow’s Feet Min Max Cardinality 011 0M[any] 1M[any]

The Entity-Relationship Diagram (ERD)

An ERD Example

What Is an ERD? A picture of the logical data model, –i.e., an ERD shows the information created, stored, and used by a business system.

An ERD Example A patient must have at least 1 appointment

Topic Duration Recap Last Week20-30 minutes Homework30-40 minutes *** Break15 minutes Foreign keys30 minutes Special entity types30 minutes Data Modeling: Group Exercises45 minutes Assignment 3 Intro10 minutes Today’s agenda

Homework Ch. 7: Exercises A, D-3, D-4, H, Minicase 2

Topic Duration Recap Last Week20-30 minutes Homework30-40 minutes *** Break15 minutes Foreign keys30 minutes Special entity types30 minutes Data Modeling: Group Exercises45 minutes Assignment 3 Intro10 minutes Today’s agenda

Topic Duration Recap Last Week20-30 minutes Homework30-40 minutes *** Break15 minutes Foreign keys30 minutes Special entity types30 minutes Data Modeling: Group Exercises45 minutes Assignment 3 Intro10 minutes Today’s agenda

Still More Definitions A foreign key is all of these things: a primary key of one entity (sometimes called parent entity), duplicated in another entity (child entity) provides a common linkage between the two entities

Foreign Key Example Customer(cust_id (PK), cust_name) Order (ord_no (PK), cust_id (FK), ord_date) Customers (Parent) cust_id cust_name 100Slick Willy, Inc. 200George_W, Co. 300Gore, Ltd. … ord no cust_idord_date Sep Nov Dec Dec-2000 … Orders (Child) A foreign key is a primary key of one entity that is duplicated in another entity to provide a common linkage between entities. Why use them? PK FKCust_id

Topic Duration Recap Last Week20-30 minutes Homework30-40 minutes *** Break15 minutes Foreign keys30 minutes Special entity types30 minutes Data Modeling: Group Exercises45 minutes Assignment 3 Intro10 minutes Today’s agenda

Entity Types 1.Independent 2.Dependent 3.Intersection

Independent Entities An independent entity exists without the help of another entity –Common entities such as student, professors, customers, products –The identifier is created by the entity’s own attributes –Usually on the “1” side of a relationship –a.k.a. fundamental entity (in Visual Analyst, e.g.) or strong entity

Dependent Entities Alternatively, a dependent entity cannot exist without the help of another entity –Special entities such as emp_dependent (needs an employee to exist) –The identifier is usually based on another entity’s attributes (emp_ssn & dep_ssn) –Usually on the “M” side of a relationship –a.k.a. attributive entity (in Visual Analyst, e.g.) or weak entity

Intersection entities An intersection entity exists based on the relationship between two entities. –They have attributes that are peculiar to the relationship between those entity instances, not the individual entities themselves –They are created to store information about two entities sharing an M:M relationship –a.k.a. associative entities, gerunds

Intersection Entity Example A student may take many classes. A class may have many students. Where are grades stored? Student Class An instance in the student entity is related to _____ instances in the class entity. An instance in the class entity is related to _____ instances in the student entity. RosterStudentClass

An ERD Example: CD’s Relationships Expanded

An Intersection Entity Example A CD may be a part of many orders. An order may contain many CDs. The CD-order relationship is M:M. Where do you store quantity of CD’s on an order?

Adding Intersection Entities 1.Create an intersection entity (line item). 3. The “1” side goes on the original entities. 2.Move the “M’s” are adjacent to the intersection entity.

M:N to 1:Ms Rule: The M always go to the intersection entity. Why?

Creating An Entity- Relationship Diagram

Steps in Building Data Models 1.Review existing data models 2.Define entities a.Independent b.Dependent, including Intersection entities 3.Define attributes and keys (primary, foreign) 4.Define relationships 5.Finalize ERD 6.Normalize 7.Integrate data models as required 8.Verify completeness of the data model 9.Validate the data model a.With users b.With the enterprise’s data administrator

Design Guidelines Best practices rather than rigid rules Entities should have many instances (don’t include fixed items such as stationery headings) Avoid unnecessary attributes (outside the scope of your system) Apply correct cardinality and modality Labels reflect common business terms Assumptions should be clearly stated

Summary The ERD is the most common technique for drawing data models. The building blocks of the ERD are: –Entities (nouns), describe people, places, or things –Attributes (nouns), capture information about the entity –Relationships (active verb sentences) associate data across entities; they have cardinality and modality

Topic Duration Recap Last Week20-30 minutes Homework30-40 minutes *** Break15 minutes Foreign keys30 minutes Special entity types30 minutes Data Modeling: Group Exercises45 minutes Assignment 3 Intro10 minutes Today’s agenda

Group Exercise Textbook, p.207, Your Turn 7-2 Show: Entities Attributes Identifier(s) Relationships Cardinality Modality 15 minutes

Topic Duration Recap Last Week20-30 minutes Homework30-40 minutes *** Break15 minutes Foreign keys30 minutes Special entity types30 minutes Data Modeling: Group Exercises45 minutes Assignment 3 Intro10 minutes Today’s agenda

Some final points

Why Normalize? Prevent inconsistencies Prevent update anomalies

Normalization Process 1NF = No repeating groups 2NF = 1NF + no partial dependencies (non-key attribute dependent on portion of primary key) 3NF = 2NF + no transitive dependencies (non- key attribute dependent on another non-key attribute)

Metaphors ER ModelRelational Model DatabaseSpreadsheet EntityRelationTable, FileTable InstanceTupleRecordRow Attribute FieldColumn IdentifierKey

Identifiers An identifier should have the following characteristics: –Its value should not change over the life of each instance –Its value should never be “null” or empty –It should be composed of the minimal number (preferably one) of attributes required to ensure uniqueness