Chapter 9 - Database Management Systems
Chapter 9 - Database Management Systems
CHAPTER 9
DATABASE MANAGEMENT SYSTEMS
Objectives:
● Problems inherent in the flat-file approach to data management that gave rise to the
database concept
● Relationships among the defining elements of the database environment
● Anomalies caused by unnormalized databases and the need for data normalization
● Stages in database design: entity identification, data modeling, constructing the physical
database, and preparing user views
● Features of distributed databases and issues to consider in dealing on a particular
database configuration
Flat-File Environment
User 1
Transactions Data
A, B, C
User 2
Transactions
X, B, Y
User 3
Transactions
L. B, M
Data Redundancy and Flat-File Problems
● Data Storage – creates excessive storage costs of paper documents and/or magnetic
form
● Data Updating – any changes or additions must be performed multiple times
Database Approach
User 1 Database
Transactions
User 2
Transactions
User 3
Transactions
● No data redundancy: Data is stored only once, eliminating data redundancy and
reducing storage costs
● Single Update: Because data is in only one place, it requires only a dingle update,
reducing the time and cost of keeping the database current
● Current values: A change to the database made by any user yields current data values
for all other users.
● Task-data independence: As users’ information needs expand, the new needs can be
more easily satisfied than under the flat-file approach
DBMS Features
● Program Development – user created applications
● Backup and Recovery – copies database
● Database Usage Reporting – captures statistics on database usage (who, when, etc.)
● Database Access – authorizes access to sections of the database
▪ User Programs – makes the presence of the DBMS transparent to the user
▪ Direct Query – allows authorized users to access data without programming
Query Language
● The query capability permits end users and professional programmers to access data in
the database without need for conventional programs
3 Types of Anomalies
● Insertion Anomaly – A new item cannot be added to the table until at least one entity
uses a particular attribute item
● Deletion Anomaly – If an attribute item used by only one entity is deleted, all
information about that attribute item is lost
● Update Anomaly – A modification on an attribute must be made in each of the rows in
which the attribute appears
● Anomalies can be corrected by creating additional relational tables
Advantages of DDP
● Cost reductions in hardware and data entry tasks
● Improved cost control responsibility
● Improved user satisfaction since control is closer to the user level
● Backup of data can be improved through the use of multiple data storage sites
Disadvantages of DDP
● Loss of control
● Mismanagement of resources
Data Currency
● Occurs in DDP with a centralized database
● During transaction processing, data will temporarily be inconsistent as records are read
and updated
● Database lockout procedures are necessary to keep IPUs from reading inconsistent data
and from writing over a transaction being written by another IPU
Review Questions:
1. Give five general duties of the database administrator.
2. What are the four primary elements of the database environment?
3. How are the network and hierarchical models different?
4. What flat-file data management problems are solved as a result of using the database
concept?
5. What are four ways in which database management systems provide a controlled
environment to manage user access and the data resources?
6. Explain the relationship between the three levels of the data definition language. As a user,
which level would you be most interested in?
7. What is a primary key?
8. What is a foreign key?
9. What is a data dictionary, and what purpose does it serve?
10. Give an application for a partitioned database.
11. What is an entity?
12. Give an application for a replicated database.
13. Discuss and give an example of the following types of associations: (1:0,1), (1:1), (1:M), and
(M:M).
14. Distinguish between association and cardinality.
15. Explain how a separate linking table works in a many-to-many association.
16. What are the four characteristics of properly designed relational database tables?
17. What do the relational features restrict, project, and join mean?
18. What are the conditions for the third normal form (3NF)?