Database Management

40
Database Management

description

Database Management. Data and Information. Create database. Create forms and reports. Add, change, and delete data. Sort and retrieve data. Next. What is a database ?. Collection of data organized so you can access, retrieve, and use it. Database software allows you to. - PowerPoint PPT Presentation

Transcript of Database Management

Page 1: Database Management

Database Manageme

nt

Page 2: 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

Data and Information

What is a database?

p. 514 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 3: Database Management

Data and Information

How are data and information related?

p. 514 - 515 Fig. 10-1 Next

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

Page 4: Database Management

Data and Information

What is data integrity?

p. 516 Next

Degree to which data is correct 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 5: Database Management

UsefulUsefulAccessibleAccessible

OrganizedOrganized

Data and Information

What are the qualities of valuable information?

p. 516 - 517 Next

TimelyTimely

VerifiableVerifiable

AccurateAccurate

Cost-effectiveCost-effective

Page 6: Database Management

The Hierarchy of Data

What is a hierarchy?

p. 517 Fig. 10-2 Next

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

Page 7: Database Management

The Hierarchy of Data

What is a field?

p. 518 Fig. 10-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 8: Database Management

Yes/NoYes/No(also called Boolean)

—only the values Yes or No (or True

or False)

HyperlinkHyperlinkWeb address that links to document or Web page

ObjectObject(also called BLOB for binary large object)—photograph, audio, video,

or document created in other application such as word processing or spreadsheet

The Hierarchy of Data

What are common data types?

p. 518 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 9: Database Management

The Hierarchy of Data

What is a record?

p. 519 Next

Group of related fields

Key field, or primary key, uniquely identifies each record

Page 10: Database Management

The Hierarchy of Data

What is a data file?

p. 518 – 519 Fig. 10-3 Next

Collection of related records stored on disk

key field

records fields

2 East Penn Drive

99 Tenth Street

33 Timmons Place

33099 Clark Street

54 Lucy Court

Address

Pittsboro

Carmel

Cincinnati

Montgomery

Shelbyville

City

INRuizAdelbert3928

INElena4872

OHDrakeLouella3876

ALMurrayShannon2928

INBrewerMilton2295

StateLast NameFirst NameMember ID

Gupta

Page 11: Database Management

Maintaining Data

What is file maintenance?

p. 520 Next

Changing recordsAdding records

Deleting records

Procedures that keep data current

Page 12: Database Management

Maintaining Data

Why do you add records?

p. 520 Fig. 10-5 Next

Add new record when you obtain new data

Page 13: Database Management

Maintaining Data

Why do you change records?

p. 521 Fig. 10-6 Next

Correct inaccurate data Update old data

Page 14: Database Management

Maintaining Data

Why do you delete records?

p. 522 Fig. 10-7 Next

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

others flag record

Page 15: Database Management

Maintaining Data

What is validation?

p. 522 - 523 Fig. 10-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 16: 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. 523 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 17: 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. 524 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 18: Database Management

File Processing Versus DatabasesWhat is the database approach?

p. 524 Fig. 10-9 Next

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

certain data

Page 19: Database Management

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

p. 525 Next

Reduced data

redundancy

Reduced data

redundancy Improved data

integrity

Improved data

integrityShared

dataShared

dataEasier accessEasier access

Reduced development

time

Reduced development

time

Page 20: Database Management

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

p. 525 Fig. 10-10 Next

Page 21: Database Management

Database Management Systems

What are popular database management systems (DBMSs)?

p. 526 Fig. 10-11 Next

Page 22: Database Management

Database Management Systems

What is a data dictionary?

p. 527 Fig. 10-12 Next

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

Page 23: Database Management

Database Management Systems

What is a query?

p. 528 Fig. 10-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 24: Database Management

Database Management Systems

What is a query by example (QBE)?

p. 528 - 529 Fig. 10-14 Next

Program retrieves records that match criteria entered in form fields

Query by example screen

criteriaQuery results

Has a graphical user interface that assists users with retrieving data

Page 25: Database Management

Database Management Systems

What is a form?

p. 530 Fig. 10-15 Next

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

Used to retrieve and maintain data in a database

Form that sends data across network or Internet is called e-form, short for electronic form

Page 26: Database Management

Database Management Systems

What is a report generator?

p. 530 Fig. 10-16 Next

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

Also called report writer

Page 27: Database Management

Database Management Systems

What is data security?

p. 530 Next

Read-only privileges -

user can view data, but cannot change it

Read-only privileges -

user can view data, but cannot change it

DBMS provides means to ensure only authorized users can access

data

DBMS provides means to ensure only authorized users can access

data

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

Full-update privileges -

user can view and

change data

Full-update privileges -

user can view and

change data

Page 28: Database Management

Database Management Systems

What are backup and log?

p. 531 Fig. 10-17 Next

Backup is a copy of the entire database

Log is a listing of activities that change database contents DBMS places three items

in log: before image, actual change, and after image

before image

change

after image

Page 29: Database Management

Database Management Systems

What is a recovery utility?

p. 532 Next

Uses logs and/or backups to restore database when it is damaged or destroyed

Rollforward— DBMS uses log to re-enter changes made to data-base since last save or backup

Also called forwardrecovery

Rollback— DBMS uses log to undo any changes made to database during a certain period of time

Also called backwardrecovery

Page 30: Database Management

Relational, Object-Oriented, and Multidimensional Databases

What is a data model?

p. 532 Fig. 10-18 Next

Rules and standards that define how database organizes data

Defines how users view organization of data

Four popular data models Relational Object-oriented Object-relational Multidimensional

Page 31: Database Management

Relational, Object-Oriented, and Multidimensional Databases

What is a relational database?

p. 533 Fig. 10-19 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

Page 32: Database Management

Relational, Object-Oriented, and Multidimensional Databases

What is a relationship?

p. 533 Fig. 10-20 Next

Connection within data

Page 33: Database Management

Relational, Object-Oriented, and Multidimensional Databases

What is Structured Query Language (SQL)?

p. 534 Fig. 10-21 Next

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

statementsSQL statement

SQL statement results

Page 34: Database Management

Relational, Object-Oriented, and Multidimensional Databases

What is an object-oriented database (OODB)?

p. 534 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 faster

Page 35: Database Management

Relational, Object-Oriented, and Multidimensional Databases

What are examples of applications appropriate for an object-oriented database?

p. 534 Next

Multimedia databasesMultimedia databases

Store images, audio clips, and/or video clips

Store images, audio clips, and/or video clips

Groupware databasesGroupware databases

Store documents such as schedules, calendars, manuals,

memos, and reports

Store documents such as schedules, calendars, manuals,

memos, and reportsComputer-aided design (CAD) databasesComputer-aided design (CAD) databases

Store data about engineering, architectural,

and scientific designs

Store data about engineering, architectural,

and scientific designs

Hypertext databasesHypertext databases

Contain text links to other documentsContain text links to other documents

Hypermedia databasesHypermedia databases

Contain text, graphics, video, and sound

Contain text, graphics, video, and sound

Web databasesWeb databases

Link to e-form on Web pageLink to e-form on Web page

Page 36: Database Management

What is a multidimensional database?

Relational, Object-Oriented, and Multidimensional Databases

p. 535 Next

Stores data in dimensions

Multiple dimensions, also called hypercube, allow users to analyze any view of data

Can consolidate data much faster than relational database

Page 37: Database Management

Relational, Object-Oriented, and Multidimensional Databases

What is a data warehouse?

p. 536 Next

Data mart is smaller version of data warehouse

Uses multidimensional databases

Often uses a process called data mining to find patterns

and relationships among data

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

Quick and efficient way to access large

amounts of data

Page 38: Database Management

Web Databases

What is a Web database?

p. 536 - 537 Fig. 10-23 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

Page 39: 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. 537 Fig. 10-24 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: Database Management

Database Administration

What is the role of the database analyst and administrator?

p. 538 Next

Database analyst (DA)Database analyst (DA) Database administrator (DBA)Database administrator (DBA) Focuses on meaning and

usage of data 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