You are on page 1of 69

Database

Management
Ch 3 Information and Communications Technology 1
Database
Management
Section Two

Ch 3 Information and Communications 2


Technology
Data and Information
How are data and information related?
 Data is raw facts.
 Information is data that is organized and
meaningful.
 Computers process data into information.
 Computers’ data processing is shown in
the next slide.

Ch 3 Information and Communications 3


Technology
Data and Information
Step 2.
receipt The
computer
extracts
the
processing member
data from
disk.
data stored on disk

Step 3. The receipt is


Step 1. The member data,
including a photograph, is entered created and printed.
and stored on the hard disk. Ch 3 Information and Communications 4
Technology
Data and Information
What is a database?
Database software
Collection of data also called database
organized so management system
you can access, (DBMS)
retrieve, and Database software
use it allows you to

Create Sort and


database retrieve data Create forms
Add, change,
and reports
& delete data
Ch 3 Information and Communications 5
Technology
Data and Information
What is data integrity?
Garbage in
 Degree to which
data is correct.
 Garbage in,
garbage out Garbage out
(GIGO)—computer
phrase that means
you cannot create
Data integrity
correct information is lost
from incorrect data.

Ch 3 Information and Communications 6


Technology
Data and Information

What are the qualities of valuable information?

Accurate

Verifiable
Timely
Organized
Accessible
Useful

Cost-effective

Ch 3 Information and Communications 7


Technology
The Hierarchy of Data

What is a hierarchy?
 Database contains files, file contains
records, record contains fields, field
contains characters

Ch 3 Information and Communications 8


Technology
.

Ch 3 Information and Communications 9


Technology
The Hierarchy of Data

What is a field?
 Combination of one or more characters
 Smallest unit of data user accesses
 Field size defines the maximum number of
characters a field can contain
 Field name uniquely identifies each field
 Data type specifies kind of data field
contains

Ch 3 Information and Communications 10


Technology
The Hierarchy of Data: E.g. for a Field

Ch 3 Information and Communications 11


Technology
The Hierarchy of Data
What are common data types?

Text Numeric AutoNumber


(also called numbers unique number automatically
alphanumeric)—letters, only assigned to each new record
numbers, or special
characters

Currency Date Memo


dollar and cent amounts or month, day, year, and lengthy text entries
numbers containing decimal sometimes time
values

Object
Yes/No Hyperlink (also called BLOB for binary large
(also called Boolean) Web address that links to object)—photograph, audio, video,
—only the values document or Web page or document created in other
Yes or No (or True application such as word
or False) processing or spreadsheet

Ch 3 Information and Communications 12


Technology
The Hierarchy of Data
What are common data types?

AutoNumber
Text Numeric
unique number
(also called automatically
alphanumeric
numbers assigned to each
)—letters, only new record
numbers, or
special
characters

Ch 3 Information and Communications 13


Technology
The Hierarchy of Data
What are common data types?...

Memo
Currency Date lengthy text
dollar and month, day, entries
cent amounts year, and
or numbers sometimes
containing time
decimal
values

Ch 3 Information and Communications 14


Technology
The Hierarchy of Data
What are common data types?...

Object
(also called BLOB
for binary large
Yes/No Hyperlink object)—
(also called Web address photograph, audio,
that links to video, or document
Boolean)—
created in other
only the document or
application such as
values Yes Web page
word processing or
or No (or
spreadsheet
True or
False)
Ch 3 Information and Communications 15
Technology
The Hierarchy of Data

What is a record?
Group of
related fields

Key field, or primary key,


uniquely identifies each record
Ch 3 Information and Communications 16
Technology
The Hierarchy of Data

What is a data file?


 Collection of related records stored on disk
Member ID First Name Last Name Address City State

2295 Donna Vandenberg 1029 Wolf Avenue Montgomery AL


2928 Shannon Murray 33099 Clark Street Montgomery AL
3376 Adrian Valesquez 15 Duluth Street Prattville AL
3928 Jonah Weinberg P.O. Box 45 Clanton AL
4872 Marcus Green 22 Fifth Avenue Auburn AL

records key fields


field

Ch 3 Information and Communications 17


Technology
The Hierarchy of Data: E.g. for a Data File
Member ID First Name Last Name Address City State

2295 Donna Vandenberg 1029 Wolf Avenue Montgomery AL

2928 Shannon Murray 33099 Clark Street Montgomery AL

3376 Adrian Valesquez 15 Duluth Street Prattville AL

3928 Jonah Weinberg P.O. Box 45 Clanton AL

4872 Marcus Green 22 Fifth Avenue Auburn AL

records key fields


field

Ch 3 Information and Communications 18


Technology
Maintaining Data
What is file maintenance?
 Procedures that keep data current

Adding records Changing records

Deleting records

Ch 3 Information and Communications 19


Technology
Maintaining Data
Why do you add records?
 Add new record when you obtain new data

Ch 3 Information and Communications 20


Technology
Maintaining Data

Ch 3 Information and Communications 21


Technology
Maintaining Data

Why do you change records?


 Correct inaccurate data
 Update old data

Ch 3 Information and Communications 22


Technology
Maintaining Data

Ch 3 Information and Communications 23


Technology
Maintaining Data

Why do you delete records?


 When record no longer is needed
 Some programs remove record immediately,
others flag record

Ch 3 Information and Communications 24


Technology
Maintaining Data

Ch 3 Information and Communications 25


Technology
Maintaining Data

What is validation?
 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
 Sample Valid and Invalid Data is shown
in the next slide

Ch 3 Information and Communications 26


Technology
SAMPLE VALID AND INVALID DATA
Validity Check Field Being Valid Data Invalid Data
Checked
Alphabetic Check First Name Adrian Ad33n

Numeric Check Postal Code 36109 3rto9

Range Check Monthly Fee $39.50 $95.25

Consistency Date Joined 10-20-2004 10-20-2004


Check Training Date 10-27-2004 10-13-2004

Completeness Last Name Valesquez


Check
Ch 3 Information and Communications 27
Technology
Maintaining Data
What are the types of validity checks?
Alphabetic/ Completeness
Check Digit
Numeric Check Check
number(s) or
ensures correct verifies that a
character(s)
type of data required field
appended to or
entered contains data
inserted into a
primary key Consistency
value to confirm Range Check Check
accuracy of determines tests for logical
primary key whether number relationship
value is within between two or
specified range more fields
Ch 3 Information and Communications 28
Technology
File Processing Versus Databases
What is a file processing system?
Each
department Records in
or area one file may May have
within not relate to weaknesses
organization records in any
has own set other file
of files

Data redundancy Isolated data—data


—same fields stored in separate
stored in multiple files so it is difficult
files to access
Ch 3 Information and Communications 29
Technology
File Processing Versus Databases
What is the database approach?
 Many programs and users can share data
in database
 Secures data so only authorized users can
access certain data

Ch 3 Information and Communications 30


Technology
File Processing Versus Databases

Ch 3 Information and Communications 31


Technology
File Processing Versus Databases
What are the strengths of the database approach?

Reduced
data
redundancy Improved
data
integrity
Shared
data
Easier
access
Reduced
development
time

Ch 3 Information and Communications 32


Technology
File Processing Versus Databases
How do a File Processing Example

database
application
and a file
processing Database Example
application
differ in the
way they store
data?
Ch 3 Information and Communications 33
Technology
File Processing
Example

Database Example
Ch 3 Information and Communications 34
Technology
Database Management Systems(DBMSs)
What are popular database management systems?
Database Manufacturer Computer Type

Access Microsoft Corporation Personal computer, server, PDA


DB2 IBM Corporation Personal computer, midrange server,
mainframe

Informix IBM Corporation Personal computer, midrange server,


mainframe

Ingres Computer Associates Personal computer, midrange server,


International, Inc. mainframe

Oracle Oracle Corporation Personal computer, midrange server,


mainframe, PDA

SQL Server Microsoft Corporation Server

Sybase Sybase Inc. Personal computer, midrange server, PDA

Ch 3 Information and Communications 35


Technology
Database Management Systems
What is a data dictionary?
 Contains data about each file in database and
each field within those files

Ch 3 Information and Communications 36


Technology
Ch 3 Information and Communications 37
Technology
Database Management Systems
Step 1. Select the fields you want
to display in the resulting query.
What is a query?
 Request for specific data
from a database
 Query language consists
of simple, English-like
Step 2. Assign a name to the query,
statements that allow so you can open it later.

users to specify data to


display, print, or store
Step 3. View query on the screen.

Ch 3 Information and Communications 38


Technology
Step 1. Select the fields you want to display in the resulting
query.

Ch 3 Information and Communications 39


Technology
Step 2. Assign a name to the query, so you can open it later.

Ch 3 Information and Communications 40


Technology
Step 3. View query on the screen.

Ch 3 Information and Communications 41


Technology
Database Management Systems
What is a query by example (QBE)?
 Program retrieves records that match criteria
entered in form fields
 Has a graphical user interface that assists users
with retrieving data
Query by example screen

Query results
criteria

Ch 3 Information and Communications 42


Technology
Query by example screen

criteria
Query results

Ch 3 Information and Communications 43


Technology
Database Management Systems
What is a form?
 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 Ch 3 Information and Communications 44
Technology
Ch 3 Information and Communications 45
Technology
Database Management Systems
What is a report generator?
 Allows user to design a report on screen,
retrieve data into report design, then display
or print reports
 Also called
report writer

Ch 3 Information and Communications 46


Technology
Ch 3 Information and Communications 47
Technology
Database Management Systems
What is data security?
Access privileges
DBMS provides define activities
means to ensure that specific user
only authorized or group of users
users can access can perform
data

Read-only privileges
Full-update
privileges user
user can view data,
but cannot change it can view and
change data
Ch 3 Information and Communications 48
Technology
Database Management Systems
What are backup and log? before image

 Backup is a copy of the


entire database
 Log is a listing of
activities that change change

database contents after image

 DBMS places three


items in log: before
image, actual change,
and after image
Ch 3 Information and Communications 49
Technology
before image

change

Ch 3 Information and Communications 50


Technology
after image

Ch 3 Information and Communications 51


Technology
Database Management Systems
What is a recovery utility?
Uses logs and/or
Rollforward—
backups to restore
DBMS uses log to
database when it is Rollback— DBMS
re-enter changes
damaged or uses log to undo any
made to data-base
destroyed changes made to
since last save or
database during a
backup
certain period of time
Also called
Also called
forward
backward
recovery
recovery

Ch 3 Information and Communications 52


Technology
Relational, Object-Oriented, and Multidimensional
Databases
What is a data model?
 Rules and standards that define how database
organizes data
 Defines how users view organization of data
 Three popular data models
 Relational
 Object-oriented
 Multidimensional

Ch 3 Information and Communications 53


Technology
DATA MODELS FOR POPULAR DBMSs

Ch 3 Information and Communications 54


Technology
Relational, Object-Oriented, and Multidimensional
Databases
What is a relational database?
 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

Ch 3 Information and Communications 55


Technology
DATA TERMINOLOGY

Ch 3 Information and Communications 56


Technology
Relational, Object-Oriented, and Multidimensional
Databases
What is a relationship?
 Connection within data

Ch 3 Information and Communications 57


Technology
Ch 3 Information and Communications 58
Technology
Relational, Object-Oriented, and Multidimensional Databases

What is Structured Query Language (SQL)?


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

Ch 3 Information and Communications 59


Technology
SQL statement

SQL statement results

Ch 3 Information and Communications 60


Technology
Relational, Object-Oriented, and Multidimensional Databases

What is an object-oriented database (OODB)?


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

Can store more types of data


Advantages
Can access data faster

Often uses object query language (OQL)


Ch 3 Information and Communications 61
Technology
Relational, Object-Oriented, and Multidimensional Databases

What are examples of applications appropriate for an


object-oriented database?
Multimedia databases Groupware databases

Store images, audio clips, Store documents such as


and/or video clips schedules, calendars, manuals,
memos, and reports
Computer-aided design
(CAD) databases
Hypertext databases
Store data about
Contain text links
engineering, architectural,
to other documents
and scientific designs
Hypermedia databases Web databases

Contain text, graphics,


Link to e-form on Web page
video, and sound
Ch 3 Information and Communications 62
Technology
Relational, Object-Oriented, and Multidimensional Databases

What is a multidimensional database?

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

Ch 3 Information and Communications 63


Technology
Relational, Object-Oriented, and Multidimensional Databases

What is a data warehouse?


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

Quick and efficient Often uses a process called


way to access large data mining to find patterns
amounts of data and relationships among data

Uses multidimensional Data mart is smaller


databases version of data warehouse

Ch 3 Information and Communications 64


Technology
Web Databases
What is a Web database?
 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

Ch 3 Information and Communications 65


Technology
Ch 3 Information and Communications 66
Technology
Database Development and Administration
What are guidelines for developing a database?

Determine the 3. Design the fields for each table


1. Purpose of the
Database
 Be sure every record has a unique
2. Design the tables primary key
 Design tables on  Use separate fields for logically
paper first distinct items
 Each table should  Do not create fields for information
contain data about that can be derived from entries in
one subject other fields
 Allow enough space for each field
4.Determine the  Set default values for frequently
relationship among entered data
the tables Ch 3 Information and Communications 67
Technology
Database Administration
What is the role of the database analyst and
administrator?

Database analyst (DA) Database administrator


 Focuses on meaning and (DBA)
 Creates and maintains data
usage of data
 Decides proper placement dictionary, manages
database security, monitors
of fields, defines
database performance, and
relationships, and
checks backup and
identifies users’ access
recovery procedures
privileges

Ch 3 Information and Communications 68


Technology
End of Chapter Three
Section Two

Ch 3 Information and Communications 69


Technology

You might also like