30
5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.

5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

Embed Size (px)

Citation preview

Page 1: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-1McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.

Page 2: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

Data Resource Management

Data ConceptsDatabase Management

Types of Databases

Chapter

5

McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.

Page 3: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-3

Learning Objectives

1. Explain the business value of implementing data resource management processes and technologies in an organization.

2. Outline the advantages of a database management approach to managing the data resources of a business, compared to a file processing approach.

3. Explain how database management software helps business professionals and supports the operations and management of a business.

Page 4: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-4

Learning Objectives

4. Provide examples to illustrate each of the following concepts:

a. Major types of databasesb. Data warehouses and data miningc. Logical data elementsd. Fundamental database structurese. Database development

Page 5: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-5

Case 1: Harrah’s Entertainment and Others

For casinos, one of their most important assets is the data about the high-roller customers

What steps can be taken to prevent employees from stealing this data?ManagerialLegalTechnical

Page 6: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-6

Case Study Questions

1. Why have developments in IT helped to increase the value of the data resources of many companies?

2. How have these capabilities increased the security challenges associated with protecting a company’s data resources?

3. How can companies use IT to meet the challenges of data resource security?

Page 7: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-7

Examples of logical data elements

Page 8: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-8

Fundamental Data Concepts

Character: single alphabetic, numeric or other symbol

Field or data item: a grouping of related charactersRepresents an attribute (a characteristic or quality)

of some entity (object, person, place or event)Example: salary

Record: grouping of all the fields used to describe the attributes of an entityExample: payroll record with name, SSN and rate

of pay

Page 9: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-9

Fundamental Data Concepts

File or table: a group of related recordsDatabase: an integrated collection of logically

related data elements

Page 10: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-10

Electric Utility Database

Source: Adapted from Michael V. Mannino, Database Application Development and Design(Burr Ridge, IL: McGraw-Hill/Irwin, 2001), p. 6.

Page 11: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-11

Database Structures

HierarchicalNetworkRelationalObject-orientedMultidimensional

Page 12: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-12

Hierarchical Structure

Early DBMS structureRecords arranged in tree-like structureRelationships are one-to-many

Page 13: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-13

Hierarchical Structure

Page 14: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-14

Network Structure

Used in some mainframe DBMS packagesMany-to-many relationships

Page 15: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-15

Network Structure

Page 16: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-16

Relational Structure

Most widely used structureData elements are viewed as being stored in

tablesRow represents recordColumn represents fieldCan relate data in one file with data in another

file if both files share a common data element

Page 17: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-17

Relational Structure

Page 18: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-18

Relational Operations

Select: Create a subset of records that meet a stated

criterionExample, select employees who make more than

$30,000Join

Combine two or more tables temporarilyLooks like one big table

ProjectCreate a subset of columns in a table

Page 19: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-19

Multidimensional Structure

Variation of relational modelUses multidimensional structures to organize

dataData elements are viewed as being in cubesPopular for analytical databases that support

Online Analytical Processing (OLAP)

Page 20: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-20

Multidimensional Model

Page 21: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-21

Object-oriented Structure

Object consists ofData values describing the attributes of an entityOperations that can be performed on the data

Encapsulation: Combine data and operations

Inheritance: New objects can be created by replicated some

or all of the characteristics of parent objects

Page 22: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-22

Object-oriented Structure

Source: Adapted from Ivar Jacobsen, Maria Ericsson, and Ageneta Jacobsen, The Object Advantage: Business Process Reengineering with Object Technology (New York: ACM Press, 1995), p. 65. Copyright @ 1995, Association for Computing Machinery. By permission.

Page 23: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-23

Object-oriented Structure

Used in Object-oriented database management systems (OODBMS)

Supports complex data typesExamples, graphic images, video clips, web

pages

Page 24: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-24

Evaluation of Database Structures

HierarchicalWorked for structured routine transaction

processingCan’t handle many-to-many relationships

NetworkMore flexible than hierarchicalUnable to handle ad hoc requests

RelationalEasily respond to ad hoc requestsEasier to work with and maintainNot as efficient or quick as hierarchical or network

Page 25: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-25

Database Development

Database Administrator (DBA)In charge of enterprise database development

Data Definition Language (DDL)Develop and specify the data contents,

relationships and structureThese specifications are stored in data dictionary

Data dictionaryData base catalog containing metadataMetadata – data about data

Page 26: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-26

Database Development

Page 27: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-27

Data Planning Process

Enterprise ModelDefines basic business process of the enterpriseDefined by DBAs and designers with end users

Data ModelingRelationships between data elementsEntity Relationship Diagram (ERD) common tool

for modeling

Page 28: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-28

Entity Relationship Diagram

Page 29: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-29

Database Design Process

Logical designSchema – overall logical view of relationshipsSubschema – logical view for specific end usersData models for DBMS

Physical designHow data are to be stored and accessed on

storage devices

Page 30: 5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved

5-30

Logical and Physical Database Views