Chapter 9

advertisement
Chapter 9
Database Management
Professor Michael J. Losacco
CIS 1110 – Using Computers
Overview
Chapter
9
Define Database
Describe Database Hierarchy
Describe Database Functions
Describe Validation Techniques
List Features of Relational Databases
Explain How to Use Queries
2/29
Database
Chapter
9
DBMS (Database Management System)
Organized Collection of Data
For Quick Access, Retrieval, & Use
Database Software Allows You to
Create Database
Add, Change, & Delete Data
Sort & Query Database
Print Reports
3/29
Data & Information
Chapter
9
Processed Data Becomes Information
Largest Commercial Database
2 PB — Yahoo (Oracle on Unix 2010)
4/29
Data & Information
Chapter
9
Data Integrity
Degree to Which Data is Correct
Database Contains Errors
Loses Integrity
GIGO (Garbage In, Garbage Out)
Cannot Get Good Information From Bad Data
5/29
Database Hierarchy
Chapter
9
Database Contains Tables
Table Contains Records
Record Contains Fields
Field Contains Characters
6/29
Database Hierarchy
Chapter
9
Field
Combination of One or More Characters
Smallest Unit of Data User Accesses
Characteristics
Name Uniquely Identifies Each Field
Data Type
Text
Numeric
Currency
Size
7/29
Database Hierarchy
Chapter
9
Record
Group of Related Fields
Key Field
AKA Primary Key
Uniquely Identifies Each Record
8/29
Database Hierarchy
Chapter
9
Table
Collection of Related Records
Each Record Contains Same Fields
Each Field Contains Different Data
Database
Group of Related Tables
9/29
Maintaining Data
Chapter
9
File Maintenance
Procedure That Keeps Data Current
Add Records
When You Obtain New Data
Change Records
Correct Inaccurate Data
Update Existing Data
Delete Records
Record No Longer Needed
10/29
Maintaining Data
Chapter
9
Validation
Comparing Data with Set of Rules
Reduce Data Entry Errors
Enhance Data Integrity
Types
Alpha / Numeric
Range
Completeness
Consistency
11/29
Features
Chapter
9
Data Dictionary
Lists Fields For Each Table in Database
Lists Properties For Each Field in Table
12/29
Features
Chapter
9
Form
On Screen Window
View Single Record
Area to Enter / View / Change Data
13/29
Features
Chapter
9
Report Generator
Creates Report
Without User’s Knowledge of Programming
14/29
Features
Chapter
9
Report Types
Detailed
Summary
Consolidates Data
Exception
Identifies Data Outside of Norm
Conditions Define Status Range
15/29
Features
Chapter
9
Query
Request Specific Data from Database
SQL (Structured Query Language)
Specify Data to Display, Print, or Store
QBE (Query By Example)
Retrieves Records that Match Criteria
16/29
Features
Chapter
9
Security
Only Authorized Users Can Access Data
Access Privileges
Define Activities Group of Users Can Perform
Read-only Privileges
User Can View Data, But Cannot Change It
Full-update Privileges
User Can View & Change Data
17/29
Features
Chapter
9
Backup
Copy of Entire Database
Log
Listing of Activities that Change Contents
Places Three Items In Log
Before Image
Actual Change
After Image
18/29
Features
Chapter
9
Log Example
19/29
Database Models
Chapter
9
Model
Rules & Standards Defining:
How Database Organizes Data
How Users View Data
Types
Relational
Object-oriented
Multidimensional
20/29
Database Models
Chapter
9
Relational
Stores Data in Tables
Consist of Rows (Records) & Columns (Fields)
Each Row has Primary Key
Related Tables Must Have Common Field
21/29
Database Models
Chapter
9
Relational
22/29
Database Models
Chapter
9
Object-Oriented
Stores Data in Objects
Can Contain Both Data & Actions
Advantages
Can Store More Types of Data
Can Access Data Faster
Programmers Can Reuse Objects
23/29
Database Models
Chapter
9
Object-Oriented Examples
Multimedia
Images, Audio Clips, Video Clips
CAD
Engineering, Architectural, Scientific Data
Groupware
Schedules, Calendars, Memos, Reports
Hypertext
Links to Other Documents
24/29
Database Models
Chapter
9
Object-Oriented Example
25/29
Database Models
Chapter
9
Multidimensional
Stores Data in More than Two Dimensions
Allow Users to Analyze Any View of Data
Advantages
Consolidates Data Faster than Relational
26/29
Database Models
Chapter
9
Multidimensional Examples
Data Warehouse
Comprehensive Data
Required to Analyze Data Across Enterprise
From Multiple Databases
27/29
Database Models
Chapter
9
Multidimensional Examples
Data Mining
Find Patterns & Relationships Among Data
Based on Open-ended User Queries
Click Stream
Every Action Visitors Take in Web Site
28/29
Database Development
Chapter
9
Process
29/29
Download