41
Discovering Computers 2008 Fundamentals Fourth Edition Chapter 9 Database Management

Chapter 9 Database Management

Embed Size (px)

DESCRIPTION

Chapter 9 Database Management. Chapter 9 Objectives. Next. Define the term, database. Discuss the functions common to most DBMSs. Identify the qualities of valuable information. Describe characteristics of relational, object-oriented, and multidimensional databases. - PowerPoint PPT Presentation

Citation preview

Page 1: Chapter 9 Database Management

Discovering Computers 2008FundamentalsFourth Edition

Chapter 9 Database Managem

ent

Page 2: Chapter 9 Database Management

Chapter 9 Objectives

Discuss the functions common to most DBMSs

Discuss the functions common to most DBMSs

Identify the qualities of valuable information

Identify the qualities of valuable information

Discuss the terms character, field, record, and file

Discuss the terms character, field, record, and file

Identify file maintenance techniquesIdentify file maintenance techniques

Differentiate between a file processing system approach and the database approach

Differentiate between a file processing system approach and the database approach

Describe characteristics of relational, object-oriented, and

multidimensional databases

Describe characteristics of relational, object-oriented, and

multidimensional databases

Explain how to interact with Web databasesExplain how to interact with Web databases

Discuss the responsibilities of database analysts and administrators

Discuss the responsibilities of database analysts and administrators

Next

Define the term, databaseDefine the term, database

Page 3: Chapter 9 Database Management

Add, change,

and delete data

Add, change,

and delete data

CreatedatabaseCreate

database

Sort and

retrieve data

Sort and

retrieve data

Createforms and

reports

Createforms and

reports

Databases, Data and InformationWhat is a database?

p. 332 Next

Database software allows you to

Database software allows you to

Collection of data organized so

you can access, retrieve, and

use it

Collection of data organized so

you can access, retrieve, and

use it

Database software also called database management system

(DBMS)

Database software also called database management system

(DBMS)

Page 4: Chapter 9 Database Management

Data and Information

How are data and information related?

p. 332 Fig. 9-1 Next

Data is raw facts Information is data that is organized and meaningful Computers process data into information

Page 5: Chapter 9 Database Management

Data and Information

What is data integrity?

p. 333 Next

Defines the quality of the data Garbage in, garbage

out (GIGO)—computer phrase that means you cannot create correct information from incorrect data

Garbage out

Garbage in

Data integrity is lost

Page 6: Chapter 9 Database Management

UsefulUsefulAccessibleAccessible

OrganizedOrganized

Data and Information

What are the qualities of valuable information?

p. 334 Next

TimelyTimely

VerifiableVerifiable

AccurateAccurate

Cost-effectiveCost-effective

Page 7: Chapter 9 Database Management

The Hierarchy of Data

What is a hierarchy?

p. 334 - 335 Fig. 9-2 Next

Database contains files, file contains records, record contains fields, field contains characters

Page 8: Chapter 9 Database Management

The Hierarchy of Data

What is a field?

p. 335 Fig. 9-3 Next

Combination of one or more characters

Smallest unit of data user accesses Field name uniquely identifies each

field Field size defines the maximum

number of characters a field can contain

Data type specifies kind of data field contains

Page 9: Chapter 9 Database Management

Yes/NoYes/Noonly the values Yes or No (or True or False)

HyperlinkHyperlinkWeb address that links to document or Web page

ObjectObjectphotograph, audio, video, or document created in other application such as word processing or spreadsheet

The Hierarchy of Data

What are common data types?

p. 335 Next

CurrencyCurrencydollar and cent amounts or

numbers containing decimal values

DateDatemonth, day, year, and

sometimes time

MemoMemolengthy text entries

TextText(also called

alphanumeric)—letters, numbers, or special

characters

NumericNumericnumbers

only

AutoNumberAutoNumberunique number automatically assigned to each new record

Page 10: Chapter 9 Database Management

The Hierarchy of Data

What is a record?

p. 336 Next

Group of related fields

Key field, or primary key, uniquely identifies each record

Page 11: Chapter 9 Database Management

The Hierarchy of Data

What is a data file?

p. 336 Next

Collection of related records stored on disk

key field

records fields

22 Fifth Avenue

P.O. Box 45

15 Duluth Street

33099 Clark Street

1029 Wolf Avenue

Address

Auburn

Clanton

Prattville

Montgomery

Montgomery

City

ALRuizAdelbert3928

ALElena4872

ALDrakeLouella3876

ALMurrayShannon2928

ALBrewerMilton2295

StateLast NameFirst NameMember ID

Gupta

Page 12: Chapter 9 Database Management

Maintaining Data

What is file maintenance?

p. 336 Next

Changing recordsAdding records

Deleting records

Procedures that keep data current

Page 13: Chapter 9 Database Management

Maintaining Data

Why do you add records?

p. 336 - 337 Fig. 9-5 Next

Add new record when you obtain new data

Page 14: Chapter 9 Database Management

Maintaining Data

Why do you change records?

p. 338 Fig. 9-6 Next

Correct inaccurate data Update old data

Page 15: Chapter 9 Database Management

Maintaining Data

Why do you delete records?

p. 338 - 339 Fig. 9-7 Next

When record no longer is needed Some programs remove record immediately,

others flag record

Page 16: Chapter 9 Database Management

Maintaining Data

What is validation?

p. 339 Fig. 9-8 Next

Process of comparing data with a set of rules to find out if data is correct

Reduce data entry errors and enhance data integrity before program writes data on disk

Page 17: Chapter 9 Database Management

Consistency Check tests for logical relationship between two or more fields

Consistency Check tests for logical relationship between two or more fields

Maintaining Data

p. 339 - 340 Next

What are the types of validity checks?

Range Check determines whether number is within specified range

Range Check determines whether number is within specified range

Completeness Checkverifies that a required field contains data

Completeness Checkverifies that a required field contains data

Check Digit number(s) or character(s) appended to or inserted into a primary key value to confirm accuracy of primary key value

Check Digit number(s) or character(s) appended to or inserted into a primary key value to confirm accuracy of primary key value

Alphabetic/Numeric Check ensures correct type of data entered

Alphabetic/Numeric Check ensures correct type of data entered

Page 18: Chapter 9 Database Management

Isolated data—data stored

in separate files so it is difficult to

access

Isolated data—data stored

in separate files so it is difficult to

access

File Processing Versus DatabasesWhat is a file processing system?

p. 341 Next

Data redundancy—

same fields stored in

multiple files

Data redundancy—

same fields stored in

multiple files

Each department or

area within organization

has own set of files

Each department or

area within organization

has own set of files

May have weaknessesMay have

weaknesses

Records in one file may not relate to

records in any other file

Records in one file may not relate to

records in any other file

Page 19: Chapter 9 Database Management

File Processing Versus DatabasesWhat is the database approach?

p. 341 Fig. 9-9 Next

Many programs and users can share data in database Secures data so only authorized users can access

certain data

Page 20: Chapter 9 Database Management

File Processing Versus DatabasesWhat are the strengths of the database approach?

p. 342 Next

Reduced data

redundancy

Reduced data

redundancy Improved data

integrity

Improved data

integrityShared

dataShared

dataEasier accessEasier access

Reduced development

time

Reduced development

time

Page 21: Chapter 9 Database Management

File Processing Versus DatabasesHow do a database application and a file processing application differ in the way they store data?

p. 342 Fig. 9-10 Next

Page 22: Chapter 9 Database Management

Database Management Systems

What are popular database management systems (DBMSs)?

p. 343 Fig. 9-11 Next

Click to view Web Link,click Chapter 9, Click Web Link from left navigation, then click MySQL below Chapter 9

Page 23: Chapter 9 Database Management

Database Management Systems

What is a data dictionary?

p. 343 Fig. 9-12 Next

Contains data about each file in database and each field within those files

Page 24: Chapter 9 Database Management

Database Management Systems

What is a query?

p. 344 Fig. 9-13 Next

Request for specific data from a database

Query language consists of simple, English-like statements that allow users to specify data to display, print, or store

Page 25: Chapter 9 Database Management

Database Management Systems

What is a query by example (QBE)?

p. 345 Fig. 9-14 Next

Program retrieves records that match criteria entered in form fields

Has a graphical user interface that assists users with retrieving data

Page 26: Chapter 9 Database Management

Database Management Systems

What is a form?

p. 345 Next

Window on screen that provides areas for entering or changing data in database

Used to retrieve and maintain data in a database Well-designed forms should validate data as it is

entered

Page 27: Chapter 9 Database Management

Database Management Systems

What is a report generator?

p. 346 Fig. 9-15 Next

Allows user to design a report on screen, retrieve data into report design, then display or print reports

Also called report writer

Page 28: Chapter 9 Database Management

Database Management Systems

What are backup and log?

p. 346 Next

Backup is a copy of the entire database Log is a listing of activities that change database

contents A recovery utility uses the logs and/or backups to

restore a database when it becomes damaged or destroyed

Click to view Web Link,click Chapter 9, Click Web Linkfrom left navigation, then click Continuous Backup below Chapter 9

Page 29: Chapter 9 Database Management

Database Management Systems

Video: How A Photo Sharing Site Keeps its Data

Next

CLICK TO START

Page 30: Chapter 9 Database Management

Database Management Systems

What is data security?

p. 346 Next

user can view data, but cannot change it

user can view data, but cannot change it

DBMS provides means to ensure only authorized users can access data at permitted

times

DBMS provides means to ensure only authorized users can access data at permitted

times

Access privileges

define activities that specific user or group of users

can perform

Access privileges

define activities that specific user or group of users

can perform

user can view and

change data

user can view and

change data

Click to view Web Link,click Chapter 9, Click Web Linkfrom left navigation, then click Data Securitybelow Chapter 9

Page 31: Chapter 9 Database Management

Relational, Object-Oriented, and Multidimensional Databases

What is a data model?

p. 347 Next

Rules and standards that define how database organizes data

Defines how users view organization of data Three popular data models

Relational Object-oriented Multidimensional

Page 32: Chapter 9 Database Management

Relational, Object-Oriented, and Multidimensional Databases

What is a relational database?

p. 347 - 348 Fig. 9-16 Next

Stores data in tables that consist of rows and columns Each row has primary key Each column has unique name

Stores data relationships Uses specialized terminology

Click to view Web Link,click Chapter 9, Click Web Linkfrom left navigation, then click Relational Databases below Chapter 9

Page 33: Chapter 9 Database Management

Relational, Object-Oriented, and Multidimensional Databases

What is a relationship?

p. 348 Fig. 9-17 Next

Connection within data

Page 34: Chapter 9 Database Management

Relational, Object-Oriented, and Multidimensional Databases

What is Structured Query Language (SQL)?

p. 348 - 349 Fig. 9-18 Next

Allows you to manage, update, and retrieve data Has special keywords and rules included in SQL

statements

Click to view Web Link,click Chapter 9, Click Web Linkfrom left navigation, then click SQL below Chapter 9

Page 35: Chapter 9 Database Management

Relational, Object-Oriented, and Multidimensional Databases

What is an object-oriented database (OODB)?

p. 349 Next

Advantages

Often uses object query language (OQL)

Stores data in objectsObject is item that contains data, as well as actions that read or process data

Can store more types of dataCan access data fasterProgrammers can reuse objects

Click to view Web Link,click Chapter 9, Click Web Linkfrom left navigation, then click Object-Oriented Databases below Chapter 9

Page 36: Chapter 9 Database Management

What is a multidimensional database?

Relational, Object-Oriented, and Multidimensional Databases

p. 349 Next

Stores data in dimensions

Allow users to analyze any view of data

Can consolidate data much faster than relational database

Page 37: Chapter 9 Database Management

Relational, Object-Oriented, and Multidimensional Databases

What is a data warehouse?

p. 349 Next

Data mart is smaller version of Data mart is smaller version of data warehousedata warehouse

Uses Uses multidimensional multidimensional

databasesdatabases

Huge database system that stores and manages data Huge database system that stores and manages data required to analyze historical and current required to analyze historical and current

transactionstransactions

Quick and efficient Quick and efficient way to access large way to access large

amounts of dataamounts of data

Page 38: Chapter 9 Database Management

Web Databases

What is a Web database?

p. 350 Fig. 9-19 Next

Database you access through the Web by filling in a form on a Web page

Usually resides on a database server, a computer that stores and provides access to a database

Click to view Web Link,click Chapter 9, Click Web Linkfrom left navigation, then click Collaborative Databases below Chapter 9

Page 39: Chapter 9 Database Management

3. Design the records and fields for each table

2. Design the tables

1. Determine the purpose of the database1. Determine the purpose of the database

4. Determine the relationships among the tables

4. Determine the relationships among the tables

Design tables on paper first Each table should contain

data about one subject

Database Administration

What are guidelines for developing a database?

p. 351 Fig. 9-20 Next

Be sure every record has a unique primary key

Use separate fields for logically distinct items

Do not create fields for information that can be derived from entries in other fields

Allow enough space for each field Set default values for frequently

entered data

Page 40: Chapter 9 Database Management

Database Administration

What is the role of the database analyst and administrator?

p. 351 Next

Database analyst (DA)Database analyst (DA) Database administrator (DBA)Database administrator (DBA) Decides proper placement

of fields, defines relationships, and identifies users’ access privileges

Creates and maintains data dictionary, manages database security, monitors database performance, and checks backup and recovery procedures

Click to view Web Link,click Chapter 9, Click Web Linkfrom left navigation, then click Database Administrators below Chapter 9

Page 41: Chapter 9 Database Management

Summary of Database Management

Chapter 9 Complete

How data and information are valuable assets to an organization

How data and information are valuable assets to an organization

Methods for maintaining high-quality data

Methods for maintaining high-quality data

Assessing the quality of valuable information

Assessing the quality of valuable information

Advantages of organizing data in a database

Advantages of organizing data in a database

Various types of databasesVarious types of databases

Role of the database analysts and administrators

Role of the database analysts and administrators