Chapter 1
Chapter 1
Chapter 1
Database Systems
Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel
databases are, and why they are valuable assets for decision making The importance of database design How modern databases evolved from file systems
are and how a database system differs from a file system The main functions of a database management system (DBMS)
Information:
Data processed to reveal meaning
good decision making Good decision making is the key to survival in a global environment
that stores:
End user data (raw facts) Metadata (data about data)
structure and controls access to data Possible to share data among multiple applications or users Makes data management more efficient and effective
10
managed data
Promotes integrated view of organizations
operations Probability of data inconsistency is greatly reduced Possible to produce quick answers to ad hoc queries
11
12
Types of Databases
Single-user:
Supports only one user at a time
Desktop:
Single-user database running on a personal
computer
Multi-user:
Supports multiple users at the same time
13
14
Distributed:
Supports data distributed across several sites
15
Data warehouse:
Stores data used to generate information required
to make tactical or strategic decisions Often used to store historical data Structure is quite different
16
databases Avoid redundant data Poorly designed database generates errors leads to bad decisions can lead to failure of organization
17
database design easier to understand Awareness of problems with file systems helps prevent similar problems in DBMS Knowledge of file systems is helpful if you plan to convert an obsolete file system to a DBMS
18
19
20
21
22
insurance sold by agents Monthly reports about which customers should be contacted for renewal Reports that analyzed ratios of insurance types sold by agent Customer contact letters summarizing coverage
23
24
25
system evolved Each file used its own application programs Each file was owned by individual or department who commissioned its creation
26
27
skills grew Additional programmers hired DP specialist evolved into DP manager, supervising a DP department Primary activity of department (and DP manager) remained programming
28
done
Modern databases use fourth-generation
languages (4GL)
Allow users to specify what must be done without
29
30
administration becomes difficult Making changes in existing file structure is difficult File structure changes require modifications in all programs that use data in that file
31
requiring additional time to debug the program Security features hard to program and therefore often omitted
32
33
affecting the application programs ability to access the data Logical data format
How the human being views the data
34
35
36
Data Redundancy
Data redundancy results in data inconsistency
Different and conflicting versions of the same data
are made in several different files and/or recur frequently in one or more files Data anomalies develop when required changes in redundant data are not made successfully
37
Data Redundancy
Types of data anomalies:
Update anomalies
Occur when changes must be made to existing
records
Insertion anomalies
Occur when entering new records
Deletion anomalies
Occur when deleting records
38
Database Systems
Problems inherent in file systems make using a
Database
Logically related data stored in a single logical data
repository
39
Database Systems
40
main
parts:
Hardware Software
Operating system software
DBMS software Application programs and utility software
People
Procedures
Data
41
42
DBMS Functions
DBMS performs functions that guarantee integrity
43
44
45
programming interfaces
provide data access through a query language
Database communication interfaces allow database to accept end-user requests via multiple, different network environments
46
47
48
Summary
Data are raw facts. Information is the result of
processing data to reveal its meaning. To implement and manage a database, use a DBMS. Database design defines the database structure. A well-designed database facilitates data management and generates accurate and valuable information. A poorly designed database can lead to bad decision making, and bad decision making can lead to the failure of an organization.
49
Summary (continued)
Databases were preceded by file systems. Limitations of file system data management:
requires extensive programming system administration complex and difficult making changes to existing structures is difficult
inherent weaknesses
50