Chapter01 Updated
Chapter01 Updated
INTRODUCTION TO
DATABASE
BY:
MDM NUR RAZIA MOHD SURADI
ROOM NO : L2Q3
H/P : 019-3919804
Database Systems
Database Systems:
Design, Implementation, and Management, Sixth
Edition, Rob and Coronel
CHAPTER 1
IN THIS CHAPTER, YOU WILL LEARN:
The difference between data and information
3
IN THIS CHAPTER, YOU WILL LEARN
(CONTINUED):
4
DATA VS. INFORMATION
Data:
Raw facts; building blocks of information
Unprocessed information examples – Survey , Excel data …
Information:
Data processed to reveal meaning
Accurate, relevant, and timely information is key to good
decision making
Good decision making is key to survival in global
environment
5
SALES PER EMPLOYEE FOR EACH OF
ROBCOR’S TWO DIVISIONS
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel 6
INTRODUCING THE DATABASE
AND THE DBMS
7
INTRODUCING THE DATABASE
AND THE DBMS (CONTINUED)
DBMS (database management system):
Collection of programs that manages database structure and
controls access to data
Possible to share data among multiple applications or users
Makes data management more efficient and effective
8
DBMS MAKES DATA MANAGEMENT
MORE EFFICIENT AND EFFECTIVE
End users have better access to more and better-managed
data
9
THE DBMS MANAGES THE INTERACTION
BETWEEN THE END USER AND THE DATABASE
10
TYPES OF DATABASES
Single-user:
Supports only one user at a time
Multi-user:
Supports multiple users at the same time
11
TYPES OF DATABASES (CONTINUED)
Workgroup: (< 50 users)
Multi-user database that supports a small group of users or a
12
LOCATION OF DATABASES
Centralized:
Supports data located at a single site
13
USES OF DATABASES
Transactional (or production):
Supports a company’s day-to-day operations
14
WHY DATABASE DESIGN IS IMPORTANT
Defines the database’s expected use
Different approach needed for different types of databases
15
THE HISTORICAL ROOTS OF DATABASE:
FILES AND FILE SYSTEMS
16
MANUAL FILE SYSTEMS
Traditionally composed of collection of file folders kept in
file cabinet
17
CONVERSION FROM MANUAL FILE
SYSTEM TO COMPUTER FILE SYSTEM
Could be technically complex, requiring hiring of data
processing (DP) specialists
18
CONTENTS OF CUSTOMER FILE
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel 19
BASIC FILE TERMINOLOGY
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel 20
EXAMPLE OF EARLY DATABASE DESIGN
DP specialist wrote programs for reports:
Monthly summaries of types and amounts of insurance sold by
21
EXAMPLE OF EARLY DATABASE DESIGN
(CONTINUED)
Other departments requested databases be written for
them
22
CONTENTS OF THE AGENT FILE
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel 23
EVOLUTION OF SIMPLE FILE SYSTEM
As number of databases increased, small file system
evolved
24
A SIMPLE FILE SYSTEM
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel 25
EXAMPLE OF EARLY DATABASE DESIGN
(CONTINUED)
As system grew, demand for DP’s programming skills
grew
26
PROBLEMS WITH
FILE SYSTEM DATA MANAGEMENT
Every task requires extensive programming in a third-
generation language (3GL)
27
PROGRAMMING IN 3GL
Time-consuming, high-level activity
Programmer must be familiar with physical file structure
28
PROGRAMMING IN 3GL (CONTINUED)
Ad hoc queries are impossible
Writing programs to design new reports is time consuming
29
PROGRAMMING IN 3GL (CONTINUED)
Modifications are likely to produce errors, requiring
additional time to “debug” the program
30
FIELD DEFINITIONS
AND NAMING CONVENTIONS
Flexible record definition anticipates reporting
requirements by breaking up fields into their component
parts
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel 32
DATA REDUNDANCY
Data redundancy results in data inconsistency
Different and conflicting versions of the same data appear in
33
DATA ANOMALIES
Modification anomalies
Occur when changes must be made to existing records
Deletion anomalies
Occur when deleting records
34
DATABASE VS. FILE SYSTEM
Problems inherent in file systems make using a database
system desirable
Database
Logically related data stored in a single logical data repository
35
CONTRASTING DATABASE AND FILE
SYSTEMS
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel 36
THE DATABASE SYSTEM
ENVIRONMENT
Database system is composed of 5 main parts:
1. Hardware
Software
37
THE DATABASE SYSTEM ENVIRONMENT
(CONTINUED)
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel 38
DBMS FUNCTIONS
Performs functions that guarantee integrity and consistency of
data
39
DBMS FUNCTIONS (CONTINUED)
Security management
enforces user security and data privacy within database
40
DBMS FUNCTIONS (CONTINUED)
Data integrity management
promotes and enforces integrity rules to eliminate data integrity
41
ILLUSTRATING METADATA
WITH MICROSOFT ACCESS
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel 42
ILLUSTRATING DATA STORAGE
MANAGEMENT WITH ORACLE
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel 43
SUMMARY
44
SUMMARY (CONTINUED)
Databases were preceded by file systems
45