Top Banner
IS 257 – Spring 2004 2004-01-27 - SLIDE 1 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley School of Information Management and Systems SIMS 257: Database Management
52

2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

Dec 21, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 1

Information Systems Planning and the Database

Design Process

Ray R. LarsonUniversity of California, Berkeley

School of Information Management and Systems

SIMS 257: Database Management

Page 2: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 2

Lecture Outline

• Review– Database Life Cycle

– Dive Shop DB

– Access

• Information Systems Planning

• Information Systems Architecture

• Information Engineering

• Database Design

Page 3: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 3

Announcements/ Review

• To get DiveShop database, download from Web– There are links from the announcements page at

http://sims.berkeley.edu/courses/is257/s04/

– There is an Access 2000 version there (if you have a very old copy of access we have an Access 97 version too).

• From the SIMS lab use IE to download – there appear to be problems using NetScape

• Today: Summation and calculations in Access• Today: Printing the query results

Page 4: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 4

Lecture Outline

• Review– Database Life Cycle

– Dive Shop DB

– Access

• Information Systems Planning

• Information Systems Architecture

• Information Engineering

• Database Design

Page 5: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 5

Database System Life Cycle

Growth,Change, &

Maintenance6

Operations5

Integration4

Design1

Conversion3

PhysicalCreation

2

Page 6: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 6

The “Cascade” View

Project Identifcation and Selection

ProjectInitiation

and Planning

Analysis

Logical Design

PhysicalDesign

Implementation

MaintenanceSee Hoffer, p. 41

Page 7: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 7

Another View of the Life Cycle

Operations5

Conversion3

PhysicalCreation

2Growth, Change

6

Integration4

Design1

Page 8: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 8

Lecture Outline

• Review– Database Life Cycle

– Dive Shop DB

– Access

• Information Systems Planning

• Information Systems Architecture

• Information Engineering

• Database Design

Page 9: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 9

Test Database

• The DiveShop database contains information for the business operations of a skin & scuba diving shop that:– Organizes trips to particular locations

(destinations) with various dive sites– Dive sites have various features including

• types of marine life found there• other features (like shipwrecks)

– Rents/Sells equipment to dive customers for particular trips.

Page 10: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 10

ER Diagrams

• Entity-Relationship Diagrams are one of the main tools for database design

• We will examine ER diagrams in greater detail later

• ER Diagrams show Entities (rectangles) and their attributes (ovals) and the relationships between entities (diamonds)

Page 11: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 11

DiveShop ER DiagramCustomer

No

ShipVia

Dest

Sites

BioSite

ShipVia

ShipWrck

BioLife DiveStok

DiveItem

DiveOrds

DiveCust

CustomerNo

ShipVia

OrderNo

OrderNo

ItemNo

ItemNo

DestinationName

Destination

SpeciesNo

Site No

Destinationno

Site No

Destinationno

SpeciesNo

Site No

1

1

1

1

1

1

1/n

1

1n

n

n

n

n

n

n

n

1

Page 12: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 12

Lecture Outline

• Review– Database Life Cycle

– Dive Shop DB

– Access

• Information Systems Planning

• Information Systems Architecture

• Information Engineering

• Database Design

Page 13: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 13

• Qualifying searches

• Doing calculations in searches

• Capturing results

Page 14: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 14

Lecture Outline

• Review– Database Life Cycle

– Dive Shop DB

– Access

• Information Systems Planning

• Information Systems Architecture

• Information Engineering

• Database Design

Page 15: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 15

Information Systems Planning

• Scope of IS is now the entire organization

• Sometimes called “enterprise-wide” computing

• Problem: isolated groups in an organization start their own databases and it becomes impossible to find out who has what information, where there are overlaps, and to assess the accuracy of the information

Page 16: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 16

Information Systems Planning

• To support enterprise-wide computing, there must be enterprise-wide information planning

• One framework for thinking about and planning for enterprise-wide computing is an Information Systems Architecture or ISA

• Most organizations do NOT have such an architecture

Page 17: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 17

Lecture Outline

• Review– Database Life Cycle

– Dive Shop DB

– Access

• Information Systems Planning

• Information Systems Architecture

• Information Engineering

• Database Design

Page 18: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 18

Information Systems Architecture

• An ISA is a “conceptual blueprint or plan that expresses the desired future structure for information systems in an organization”

• It provides a “context within which managers throughout the organization can make consistent decisions concerning their information systems”– Quotes from McFadden (Modern Database Management, 4th edition),

Ch. 3

Page 19: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 19

Information Systems Architecture

• Benefits of ISA:– “Provides a basis for strategic planning of IS– Provides a basis for communicating with top

management and a context for budget decisions concerning IS

– Provides a unifying concept for the various stakeholders in information systems.

– Communicates the overall direction for information technology and a context for decisions in this area

– Helps achieve information integration when systems are distributed (increasing important in a global economy)

– Provides a basis for evaluating technology options (for example, downsizing and distributed processing)”

Page 20: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 20

Information Systems Architecture

• Zachman ISA Framework components– Data

• The “what” of the information system– Process

• The “how” of the information system– Network

• The “where” of the information system– People

• Who performs processes and are the source and receiver of data and information.

– Events and Points in time• When processes are performed

– Reasons• For events and rules that govern processing

Page 21: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 21

Information Systems Architecture

• Six roles or perspectives of the Data, Process and Network components– Business scope (Owner)– Business model (Architect)– Information systems model (Designer)– Technology model (Builder)– Technology definition (Contractor)– Information system (User)

Page 22: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 22

Information Systems Architecture

Data Process Network

1. Business Scope(Owner)

List of entitiesimportant tothe business

List of functionsthe businessperforms

List of locations inwhich the businessoperates

Page 23: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 23

Information Systems Architecture

Data Process Network

2. Business Model(Architect)

Business entities andtheir relationships

Function and processdecomposition Communications links

between business locations

Page 24: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 24

Information Systems Architecture

Data Process Network

3. Information System Model(Designer)

Model of the businessdata and their relationships

Flows between application processes

Distribution Network

Page 25: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 25

Information Systems Architecture

Data Process Network

4. Technology Model(Builder)

Database Design Process specifications Database Design

Page 26: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 26

Information Systems Architecture

Data Process Network

5. Technology Definition(Contractor)

Database Schema and subschema definition

Program Code andcontrol blocks

Configurationdefinition

Page 27: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 27

Information Systems Architecture

Data Process Network

6. Information System(User)

Database and information System

ConfigurationApplicationPrograms

Page 28: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 28

Lecture Outline

• Review– Database Life Cycle

– Dive Shop DB

– Access

• Information Systems Planning

• Information Systems Architecture

• Information Engineering

• Database Design

Page 29: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 29

Information Engineering

• A formal methodology that is used to create and maintain information systems

• Starts with the Business Model and works in a Top-Down fashion to build supporting data models and process models for that business model

Page 30: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 30

Information Engineering

Planning

Design

Analysis

Implementation

Page 31: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 31

Lecture Outline

• Review– Database Life Cycle

– Dive Shop DB

– Access

• Information Systems Planning

• Information Systems Architecture

• Information Engineering

• Database Design

Page 32: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 32

Database Design Process

ConceptualModel

LogicalModel

External Model

Conceptual requirements

Conceptual requirements

Conceptual requirements

Conceptual requirements

Application 1

Application 1

Application 2 Application 3 Application 4

Application 2

Application 3

Application 4

External Model

External Model

External Model

Internal Model

Page 33: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 33

Stages in Database Design

• Requirements formulation and analysis

• Conceptual Design -- Conceptual Model

• Implementation Design -- Logical Model

• Physical Design --Physical Model

Page 34: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 34

Database Design Process

• Requirements formulation and analysis– Purpose: Identify and describe the data that

are used by the organization– Results: Metadata identified, Data Dictionary,

Conceptual Model-- ER diagram

Page 35: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 35

Database Design Process

• Requirements Formulation and analysis– Systems Analysis Process

• Examine all of the information sources used in existing applications

• Identify the characteristics of each data element– numeric– text– date/time– etc.

• Examine the tasks carried out using the information

• Examine results or reports created using the information

Page 36: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 36

Database Design Process

• Conceptual Model– Merge the collective needs of all applications– Determine what Entities are being used

• Some object about which information is to maintained

– What are the Attributes of those entities?• Properties or characteristics of the entity• What attributes uniquely identify the entity

– What are the Relationships between entities• How the entities interact with each other?

Page 37: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 37

Database Design Process

• Logical Model– How is each entity and relationship

represented in the Data Model of the DBMS• Hierarchic?• Network?• Relational?• Object-Oriented?

Page 38: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 38

Database Design Process

• Physical (AKA Internal) Model– Choices of index file structure– Choices of data storage formats– Choices of disk layout

Page 39: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 39

Database Design Process

• External Models– “User views” of the integrated database – Making the old (or updated) applications work

with the new database design

Page 40: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 40

Developing a Conceptual Model

• Overall view of the database that integrates all the needed information discovered during the requirements analysis.

• Elements of the Conceptual Model are represented by diagrams, Entity-Relationship or ER Diagrams, that show the meanings and relationships of those elements independent of any particular database systems or implementation details.

Page 41: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 41

Entity

• An Entity is an object in the real world (or even imaginary worlds) about which we want or need to maintain information– Persons (e.g.: customers in a business,

employees, authors)– Things (e.g.: purchase orders, meetings,

parts, companies)

Employee

Page 42: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 42

Attributes

• Attributes are the significant properties or characteristics of an entity that help identify it and provide the information needed to interact with it or use it. (This is the Metadata for the entities.)

Employee

Last

Middle

First

Name SSN

Age

Birthdate

Projects

Page 43: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 43

Relationships

• Relationships are the associations between entities. They can involve one or more entities and belong to particular relationship types

Page 44: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 44

Relationships

ClassAttendsStudent

PartSuppliesproject

partsSupplier

Project

Page 45: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 45

Types of Relationships

• Concerned only with cardinality of relationship

TruckAssignedEmployee

ProjectAssignedEmployee

ProjectAssignedEmployee

1 1

n

n

1

m

Chen ER notation

Page 46: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 46

Other Notations

TruckAssignedEmployee

ProjectAssignedEmployee

ProjectAssignedEmployee

“Crow’s Foot”

Page 47: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 47

Other Notations

TruckAssignedEmployee

ProjectAssignedEmployee

ProjectAssignedEmployee

IDEFIX Notation

Page 48: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 48

More Complex Relationships

ProjectEvaluationEmployee

Manager

1/n/n

1/1/1

n/n/1

ProjectAssignedEmployee 4(2-10) 1

SSN ProjectDate

ManagesEmployee

Manages

Is Managed By

1

n

Page 49: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 49

Weak Entities

• Owe existence entirely to another entity

Order-lineContainsOrder

Invoice #

Part#

Rep#

QuantityInvoice#

Page 50: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 50

Supertype and Subtype Entities

ClerkIs one ofSales-rep

Invoice

Other

Employee

Sold

Manages

Page 51: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 51

Many to Many Relationships

Employee

ProjectIsAssigned

ProjectAssignment

Assigned

SSN

Proj#

SSN

Proj#Hours

Page 52: 2004-01-27 - SLIDE 1IS 257 – Spring 2004 Information Systems Planning and the Database Design Process Ray R. Larson University of California, Berkeley.

IS 257 – Spring 2004 2004-01-27 - SLIDE 52

Next Time

• THURSDAY: – More on ER modelling– Designing the Conceptual Model for the

Diveshop Database