Sei sulla pagina 1di 48

Discovering

Computers 2010
Living in a Digital World
Objectives Overview

See Page 513 Discovering Computers 2010: Living in a Digital World 2


for Detailed Objectives Chapter 10
Objectives Overview

See Page 513 Discovering Computers 2010: Living in a Digital World 3


for Detailed Objectives Chapter 10
Databases, Data, and Information

• Database software, often called a database


management system (DBMS), allows users to:

Page 515 Discovering Computers 2010: Living in a Digital World 4


Chapter 10
File Processing Versus Databases

Page 525 Discovering Computers 2010: Living in a Digital World 5


Figure 10-10 Chapter 10
File Processing vs Database
File Processing Databases
Redundant: same fields, multiple files Many views to same data
Isolated: separate files Related files/tables
Specific to a functional area Data shared across functional areas
Calculations on data Filter, sort, group, link, update
Programming/data integrated Data separate from programming

Discovering Computers 2010: Living in a Digital World 6


Chapter 10
Data Models

Data Models define:


• Rules and standards for organizing data
• How users view the data

They do NOT define how the data is arranged on a


disk

Discovering Computers 2010: Living in a Digital World 7


Chapter 10
Popular Types of Databases

• Relational: data in two-dimensional tables


• Object-oriented: data & instructions in objects
• Multi-dimensional: data in dimensions

Discovering Computers 2010: Living in a Digital World 8


Chapter 10
Data Models for Popular DBMSs

Page 533 Discovering Computers 2010: Living in a Digital World 9


Figure 10-18 Chapter 10
Relational Databases

• A relational database
stores data in tables
that consist of fields
and records
• A relationship is a link
between tables

Page 533 Discovering Computers 2010: Living in a Digital World 10


Figure 10-20 Chapter 10
Relational Databases

• Each table contains data about one subject


• Each data item about subject is in one field
• A collection of fields makes up one record

Discovering Computers 2010: Living in a Digital World 11


Chapter 10
Relational Databases

• Table may be called a RELATION


• Field may be called an ATTRIBUTE
• Record may be called a TUPLE

Discovering Computers 2010: Living in a Digital World 12


Chapter 10
Relational Database

• Stores data relationships between tables


• One field (attribute) or combination uniquely
identifies a record: PRIMARY KEY
• NORMALIZATION is the process of eliminating
duplication

Discovering Computers 2010: Living in a Digital World 13


Chapter 10
Object-Oriented Database

• Stores data in objects


• Stores instructions to process the data
• Objects are re-usable
• Handles unstructured data
– Maps
– Photos
– Videos

Discovering Computers 2010: Living in a Digital World 14


Chapter 10
Object-oriented database (OODB)

Examples of applications appropriate for an


object-oriented database include:

Page 534 Discovering Computers 2010: Living in a Digital World 15


Chapter 10
Multi-dimensional Databases

• Store data in dimensions


• Dimensions: time, products, policies, etc.
• Consolidates views of data quickly
• Efficient at summarizing large numbers
• Sometimes known as a hypercube

Discovering Computers 2010: Living in a Digital World 16


Chapter 10
Multidimensional Databases

Page 535 Discovering Computers 2010: Living in a Digital World 17


Figure 10-22 Chapter 10
Data warehouses

• A data warehouse is a huge database that stores and


manages the data required to analyze historical and
current transactions
• It may be distributed
• Data mining finds patterns and relationships

Click to view Web Link,


click Chapter 10, Click Web
Link from left navigation,
then click Data Warehouses
below Chapter 10
Pages 535 - 536 Discovering Computers 2010: Living in a Digital World 18
Chapter 10
WORKING WITH THE DATA

Discovering Computers 2010: Living in a Digital World 19


Chapter 10
Common data types

Page 518 Discovering Computers 2010: Living in a Digital World 20


Chapter 10
Maintaining Data

• File maintenance refers to the procedures that


keep data current

Page 520 Discovering Computers 2010: Living in a Digital World 21


Chapter 10
Validating Data

• Compare data to a set of rules after you enter it,


or as you enter it
• Reduce data entry errors

Discovering Computers 2010: Living in a Digital World 22


Chapter 10
Ways to Validate Data

Pages 522 - 524 Discovering Computers 2010: Living in a Digital World 23


Chapter 10
Data Validation Example

Page 517 Discovering Computers 2010: Living in a Digital World 24


Figure 10-2 Chapter 10
Database Integrity = Data Quality

• Data integrity identifies the quality of the data


• Garbage in, garbage out (GIGO) points out the
accuracy of a computer’s output depends on the
accuracy of the input

Click to view Web Link,


click Chapter 10, Click Web
Link from left navigation,
then click Data Integrity
below Chapter 10
Page 516 Discovering Computers 2010: Living in a Digital World 25
Chapter 10
Filtering Data

• You can specify what data to display/update


• Select records
• Select fields

Discovering Computers 2010: Living in a Digital World 26


Chapter 10
Sorting and Grouping Data

• You can order the data by any combination of fields


• You can group data together by the contents of fields

Discovering Computers 2010: Living in a Digital World 27


Chapter 10
Data Dictionary or Repository

Contains data about:


• each
file/table/relation in
the database
• each field/attribute in
those files

Pages 527 – 528 Discovering Computers 2010: Living in a Digital World 28


Figure 10-12 Chapter 10
DBMS Tools

A DBMS provides
tools that allow
users and programs
to retrieve and
maintain data in
the database

Page 528 Discovering Computers 2010: Living in a Digital World 29


Chapter 10
Query Language

• Consists of simple, English-like statements that


allow users to specify the data to display, print, or
store
• SQL is a popular example

Page 528 Discovering Computers 2010: Living in a Digital World 30


Chapter 10
Structured Query Language (SQL)

SELECT (fields/attributes)
FROM (tables/relations)
WHERE (join requirement)
ORDER BY (fields/attributes)

Discovering Computers 2010: Living in a Digital World 31


Chapter 10
Structured Query Language (SQL)

is a query language that allows users to manage,


update, and retrieve data

Page 534 Discovering Computers 2010: Living in a Digital World 32


Figure 10-21 Chapter 10
Database Management Systems

Query by example (QBE) provides a GUI to assist


users with retrieving data

Page 528 Discovering Computers 2010: Living in a Digital World 33


Chapter 10
Report writers

Allow users to design a report on the screen,


retrieve data into the report design, and then
display or print the report

Page 531 Discovering Computers 2010: Living in a Digital World 34


Figure 10-16 Chapter 10
Database Forms

• A form is a
window on the
screen that
provides areas for
entering or
modifying data in
a database
Click to view Web Link,
click Chapter 10, Click Web
Link from left navigation,
then click E-Form
below Chapter 10
Page 530 Discovering Computers 2010: Living in a Digital World 35
Figure 10-15 Chapter 10
Database Management Systems

Page 531 Discovering Computers 2010: Living in a Digital World 36


Chapter 10
DBMS Backup and Restores

• A DMBS provides a variety of techniques to


restore the database to a usable form in case it is
damaged or destroyed

Pages 531 - 532 Discovering Computers 2010: Living in a Digital World 37


Chapter 10
Backup Options

• Backup (copy) the entire database regularly


• Incremental backups
• Continuous backup copies each change
• Logs can track changes made
• Record before (before image)
• Record after change (after image)

Discovering Computers 2010: Living in a Digital World 38


Chapter 10
Recovery Methods

Roll forward Roll backward


Use log to RE-ENTER Use log to UNDO
changes made since last changes
save

Use to recovery
Use to recover data loss
partial, incomplete
transactions

Discovering Computers 2010: Living in a Digital World 39


Chapter 10
Web Databases

• Databases on the Web allow you to:

Page 536 Discovering Computers 2010: Living in a Digital World 40


Chapter 10
Databases on the Web

Discovering Computers 2010: Living in a Digital World 41


Chapter 10
Web Databases

Page 536 Discovering Computers 2010: Living in a Digital World 42


Figure 10-23 Chapter 10
How a Photo Sharing Site
Keeps Its Data

Discovering Computers 2010: Living in a Digital World 43


Chapter 10
Database Administration

• It is important to have a carefully designed


database

Page 537 Discovering Computers 2010: Living in a Digital World 44


Figure 10-24 Chapter 10
Database Administration

Click to view Web Link,


click Chapter 10, Click Web
Link from left navigation,
then click Database
Administrators below
Chapter 10
Page 538 Discovering Computers 2010: Living in a Digital World 45
Chapter 10
Database Administration

• Employees should learn


how to use the data in
the database effectively
– Interact with database
– Identify new data for the
database
– Maintain the database

Page 538 Discovering Computers 2010: Living in a Digital World 46


Figure 10-25 Chapter 10
Summary

Page 539 Discovering Computers 2010: Living in a Digital World 47


Chapter 10
Discovering
Computers 2010
Living in a Digital World

Chapter 10 Complete

Potrebbero piacerti anche