Lecture 9 - Ch02

download Lecture 9 - Ch02

of 30

Transcript of Lecture 9 - Ch02

  • 7/30/2019 Lecture 9 - Ch02

    1/30

    2009 Pearson Education, Inc. Publishing as Prentice Hall 1

    Lecture 9

    Chapter 2: The Database Development Process

    Modern Database Management

    9thEdition

    Jeffrey A. Hoffer, Mary B. Prescott,

    Heikki Topi

    Presentation Adapted by

    Dr. Mahmoud Youssef

  • 7/30/2019 Lecture 9 - Ch02

    2/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 2

    Objectives Definition of terms Describe system development life cycle Explain prototyping approach

    Explain agile software development approach Explain roles of individuals Explain three-schema approach Explain role of packaged data models

    Explain three-tiered architectures Explain scope of database design projects Draw simple data models

  • 7/30/2019 Lecture 9 - Ch02

    3/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 3

    Advantages of the Database Approach I

    Program-data independence Planned data redundancy (possibly to

    improve efficiency)

    Improved data consistency Improved data sharing Increased application development

    productivity Enforcement of standards (e.g., SQL

    language)

  • 7/30/2019 Lecture 9 - Ch02

    4/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 4

    Advantages of the Database Approach II

    Improved data quality (data types which ispart of the metadata enforce whatcontents are accepted)

    Improved data accessibility andresponsiveness (e.g., through indexes)

    Reduced program maintenance Improved decision support

  • 7/30/2019 Lecture 9 - Ch02

    5/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 5

    Costs and Risks of the DatabaseApproach

    New, specialized personnel

    Installation and management cost and

    complexity Conversion costs

    Need for explicit backup and recovery

    Organizational conflict

  • 7/30/2019 Lecture 9 - Ch02

    6/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 6

    Figure 1-5 Components of the Database Environment

  • 7/30/2019 Lecture 9 - Ch02

    7/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 7

    Components of theDatabase Environment

    CASE Toolscomputer-aided software engineering Repositorycentralized storehouse of metadata Database Management System (DBMS)software

    for managing the database Databasestorehouse of the data Application Programssoftware using the data User Interfacetext and graphical displays to users Data/Database Administratorspersonnel

    responsible for maintaining the database System Developerspersonnel responsible for

    designing databases and software End Userspeople who use the applications and

    databases

  • 7/30/2019 Lecture 9 - Ch02

    8/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 8

    The Range of Database Applications

    Personal databases

    Workgroup databases

    Departmental/divisional databases

    Enterprise database

    Enterprise resource planning (ERP) systems

    Data warehousing implementations

  • 7/30/2019 Lecture 9 - Ch02

    9/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 9

    Table 1-6 Summary of Database Applications

  • 7/30/2019 Lecture 9 - Ch02

    10/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 10

  • 7/30/2019 Lecture 9 - Ch02

    11/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 11

    Figure 1-7 Workgroup database with wireless

    local area network

  • 7/30/2019 Lecture 9 - Ch02

    12/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 12

    Enterprise Database Applications

    Enterprise Resource Planning (ERP)

    Integrate all enterprise functions

    (manufacturing, finance, sales, marketing,inventory, accounting, human resources)

    Data Warehouse

    Integrated decision support system derivedfrom various operational databases

  • 7/30/2019 Lecture 9 - Ch02

    13/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 13

    Enterprise Data Model

    First step in database development

    Specifies scope and general content

    Overall picture of organizational data at highlevel of abstraction

    Entity-relationship diagram

    Descriptions of entity types Relationships between entities

    Business rules

  • 7/30/2019 Lecture 9 - Ch02

    14/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 14

    Figure 2-1 Segment from enterprise data model

    Enterprise data model

    describes the high-

    level entities in an

    organization and therelationship between

    these entities

  • 7/30/2019 Lecture 9 - Ch02

    15/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 15

    Information Engineering

    A data-oriented methodology to create andmaintain information systems Top-down planninga generic IS planning

    methodology for obtaining a broadunderstanding of the IS needed by the entireorganization

    Four steps to Top-Down planning: Planning Analysis Design Implementation

  • 7/30/2019 Lecture 9 - Ch02

    16/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 16

    Database Schema

    External Schema User Views

    Subsets of Conceptual Schema

    Can be determined from business-function/data

    entity matrices DBA determines schema for different users

    Conceptual Schema E-R modelscovered in Chapters 3 and 4

    Internal Schema Logical structurescovered in Chapter 5

    Physical structurescovered in Chapter 6

  • 7/30/2019 Lecture 9 - Ch02

    17/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 17

    Different people

    have differentviews of the

    databasethese

    are the external

    schema

    The internal

    schema is the

    underlying

    design andimplementation

    Figure 2-7 Three-schema architecture

  • 7/30/2019 Lecture 9 - Ch02

    18/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 18

  • 7/30/2019 Lecture 9 - Ch02

    19/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 19

  • 7/30/2019 Lecture 9 - Ch02

    20/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 20

    Pine Valley Furniture

    Segment of project data model (Figure 2-11)

  • 7/30/2019 Lecture 9 - Ch02

    21/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 21

    Figure 2-12 Four relations (Pine Valley Furniture)

  • 7/30/2019 Lecture 9 - Ch02

    22/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 22

    Figure 2-12 Four relations (Pine Valley Furniture) (cont.)

  • 7/30/2019 Lecture 9 - Ch02

    23/30

    2009 Pearson Education, Inc. Publishing as Prentice Hall 23

    Chapter 3:Modeling Data in the

    Organization

    Modern Database Management

    9thEditionJeffrey A. Hoffer, Mary B. Prescott,

    Heikki Topi

  • 7/30/2019 Lecture 9 - Ch02

    24/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 24

    Objectives

    Definition of terms

    Importance of data modeling

    Write good names and definitions for entities,relationships, and attributes

    Distinguish unary, binary, and ternary relationships Model different types of attributes, entities, relationships,

    and cardinalities

    Draw E-R diagrams for common business situations

    Convert many-to-many relationships to associativeentities

    Model time-dependent data using time stamps

  • 7/30/2019 Lecture 9 - Ch02

    25/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 25

    Business Rules

    Statements that define or constrain someaspect of the business

    Assert business structure

    Control/influence business behavior

    Expressed in terms familiar to end users

    Automated through DBMS software

  • 7/30/2019 Lecture 9 - Ch02

    26/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 26

    A Good Business Rule Is:

    Declarativewhat, not how Preciseclear, agreed-upon meaning

    Atomicone statement Consistentinternally and externally Expressiblestructured, natural language Distinctnon-redundant Business-orientedunderstood by business

    people

  • 7/30/2019 Lecture 9 - Ch02

    27/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 27

    A Good Data Name Is:

    Related to business, not technical,characteristics

    Meaningful and self-documenting

    Unique

    Readable

    Composed of words from an approved list Repeatable

    Follows standard syntax

  • 7/30/2019 Lecture 9 - Ch02

    28/30

    Chapter 1 2009 Pearson Education, Inc. Publishing as Prentice Hall 28

    Data Definitions

    Explanation of a term or fact

    Termword or phrase with specific meaning

    Factassociation between two or more terms

    Guidelines for good data definition

    Gathered in conjunction with systems requirements

    Accompanied by diagrams

    Concise description of essential data meaning Achieved by consensus, and iteratively refined

  • 7/30/2019 Lecture 9 - Ch02

    29/30

  • 7/30/2019 Lecture 9 - Ch02

    30/30

    Chapter 1 2009 Pearson Education Inc Publishing as Prentice Hall 30

    Sample E-R Diagram (Figure 3-1)