database design, implementation, and management -chapter01
DESCRIPTION
Database Systems: Design, Implementation, and ManagementTRANSCRIPT
![Page 1: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/1.jpg)
1
1
Chapter 1
Database Systems
Database Systems:Design, Implementation, and Management,
Sixth Edition, Rob and Coronel
![Page 2: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/2.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
2
In this chapter, you will learn:
•The difference between data and information
•What a database is, about different types ofdatabases, and why they are valuable assetsfor decision making
•Why database design is important
•How modern databases evolved from filesand file systems
![Page 3: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/3.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
3
In this chapter, you will learn (continued):
•About flaws in file system data management
•How a database system differs from a filesystem, and how a DBMS functions within thedatabase system
![Page 4: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/4.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
4
Data vs. Information•Data:
–Raw facts; building blocks of information–Unprocessed information
•Information:–Data processed to reveal meaning
•Accurate, relevant, and timely information iskey to good decision making
•Good decision making is key to survival inglobal environment
![Page 5: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/5.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
5
Sales per Employee for Each ofROBCOR’s Two Divisions
![Page 6: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/6.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
6
Introducing the Databaseand the DBMS
•Database—shared, integrated computerstructure that houses:
–End user data (raw facts)
–Metadata (data about data)
![Page 7: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/7.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
7
Introducing the Databaseand the DBMS (continued)
•DBMS (database management system):
–Collection of programs that managesdatabase structure and controls access todata
–Possible to share data among multipleapplications or users
–Makes data management more efficient andeffective
![Page 8: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/8.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
8
DBMS Makes Data Management MoreEfficient and Effective
•End users have better access to more andbetter-managed data
–Promotes integrated view of organization’soperations
–Probability of data inconsistency is greatlyreduced
–Possible to produce quick answers to ad hocqueries
![Page 9: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/9.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
9
The DBMS Manages the InteractionBetween the End User and the Database
![Page 10: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/10.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
10
Types of Databases
•Single-user:
–Supports only one user at a time
•Desktop:
–Single-user database running on a personalcomputer
•Multi-user:
–Supports multiple users at the same time
![Page 11: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/11.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
11
Types of Databases (continued)
•Workgroup:
–Multi-user database that supports a smallgroup of users or a single department
•Enterprise:
–Multi-user database that supports a largegroup of users or an entire organization
![Page 12: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/12.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
12
Location of Databases
•Centralized:
–Supports data located at a single site
•Distributed:
–Supports data distributed across several sites
![Page 13: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/13.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
13
Uses of Databases
•Transactional (or production):–Supports a company’s day-to-day operations
•Data warehouse:–Stores data used to generate information
required to make tactical or strategic decisions•Such decisions typically require “data
massaging”
–Often used to store historical data–Structure is quite different
![Page 14: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/14.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
14
Why Database Design is Important
•Defines the database’s expected use
•Different approach needed for different typesof databases
•Avoid redundant data (unnecessarilyduplicated)
•Poorly designed database generates errors leads to bad decisions can lead tofailure of organization
![Page 15: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/15.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
15
The Historical Roots of Database:Files and File Systems
•Although managing data through file systems islargely obsolete–Understanding relatively simple characteristics of
file systems makes complexity of databasedesign easier to understand
–Awareness of problems that plagued file systemscan help prevent similar problems in DBMS
–Knowledge of file systems is helpful if you plan toconvert an obsolete file system to a DBMS
![Page 16: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/16.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
16
Manual File Systems
•Traditionally composed of collection of filefolders kept in file cabinet
•Organization within folders was based ondata’s expected use (ideally logically related)
•System was adequate for small amounts ofdata with few reporting requirements
•Finding and using data in growing collectionsof file folders became time-consuming andcumbersome
![Page 17: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/17.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
17
Conversion from Manual File System toComputer File System
•Could be technically complex, requiring hiringof data processing (DP) specialists
•DP specialists created file structures, wrotesoftware, and designed application programs
•Resulted in numerous “home-grown”systemsbeing created
•Initially, computer files were similar in designto manual files (see Figure 1.3)
![Page 18: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/18.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
18
Contents of Customer File
![Page 19: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/19.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
19
Basic File Terminology
![Page 20: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/20.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
20
Example of Early Database Design
•DP specialist wrote programs for reports:–Monthly summaries of types and amounts of
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
•Additional reports were written as required
![Page 21: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/21.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
21
Example of Early Database Design(continued)
•Other departments requested databases bewritten for them
–SALES database created for sales department
–AGENT database created for personneldepartment
![Page 22: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/22.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
22
Contents of the Agent File
![Page 23: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/23.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
23
Evolution of Simple File System
•As number of databases increased, small filesystem evolved
•Each file used its own application programs
•Each file was owned by individual ordepartment who commissioned its creation
![Page 24: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/24.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
24
A Simple File System
![Page 25: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/25.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
25
Example of Early Database Design(continued)
•As system grew, demand for DP’sprogramming skills grew
•Additional programmers hired
•DP specialist evolved into DP manager,supervising a DP department
•Primary activity of department (and DPmanager) remained programming
![Page 26: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/26.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
26
Problems withFile System Data Management
•Every task requires extensive programming ina third-generation language (3GL)
–Programmer must specify task and how itmust be done
•Modern databases use fourth-generationlanguage (4GL)
–Allows user to specify what must be donewithout specifying how it is to be done
![Page 27: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/27.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
27
Programming in 3GL
•Time-consuming, high-level activity•Programmer must be familiar with physical
file structure•As system becomes complex, access paths
become difficult to manage and tend toproduce malfunctions
•Complex coding establishes precise locationof files and system components and datacharacteristics
![Page 28: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/28.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
28
Programming in 3GL (continued)
•Ad hoc queries are impossible•Writing programs to design new reports is time
consuming•As number of files increases, system
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
![Page 29: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/29.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
29
Programming in 3GL (continued)
•Modifications are likely to produce errors,requiring additional time to “debug”theprogram
•Security features hard to program andtherefore often omitted
![Page 30: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/30.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
30
Structural and Data Dependence
•Structural dependence–Access to a file depends on its structure
•Data dependence–Changes in database structure affect
program’s ability to access data–Logical data format
•How a human being views the data
–Physical data format•How the computer “sees”the data
![Page 31: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/31.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
31
Field Definitionsand Naming Conventions
•Flexible record definition anticipates reportingrequirements by breaking up fields into theircomponent parts
![Page 32: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/32.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
32
Sample Customer File Fields
![Page 33: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/33.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
33
Data Redundancy
•Data redundancy results in data inconsistency
–Different and conflicting versions of the samedata appear in different places
•Errors more likely to occur when complexentries are made in several different files andrecur frequently in one or more files
•Data anomalies develop when requiredchanges in redundant data are not madesuccessfully
![Page 34: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/34.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
34
Data Anomalies
•Modification anomalies
–Occur when changes must be made toexisting records
•Insertion anomalies
–Occur when entering new records
•Deletion anomalies
–Occur when deleting records
![Page 35: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/35.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
35
Database vs. File System
•Problems inherent in file systems make usinga database system desirable
•File system
–Many separate and unrelated files
•Database
–Logically related data stored in a single logicaldata repository
![Page 36: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/36.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
36
Contrasting Database and File Systems
![Page 37: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/37.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
37
The Database System Environment• Database system is composed of 5 main
parts:1. Hardware2. Software
• Operating system software• DBMS software• Application programs and utility software
3. People4. Procedures5. Data
![Page 38: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/38.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
38
The Database System Environment(continued)
![Page 39: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/39.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
39
DBMS Functions
•Performs functions that guarantee integrity andconsistency of data–Data dictionary management
•defines data elements and their relationships
–Data storage management•stores data and related data entry forms, report
definitions, etc.
–Data transformation and presentation•translates logical requests into commands to
physically locate and retrieve the requested data
![Page 40: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/40.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
40
DBMS Functions (continued)
–Security management
•enforces user security and data privacy withindatabase
–Multi-user access control
•creates structures that allow multiple users toaccess the data
–Backup and recovery management
•provides backup and data recovery procedures
![Page 41: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/41.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
41
DBMS Functions (continued)
–Data integrity management
•promotes and enforces integrity rules toeliminate data integrity problems
–Database access languages and applicationprogramming interfaces
•provides data access through a query language
–Database communication interfaces
•allows database to accept end-user requestswithin a computer network environment
![Page 42: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/42.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
42
Illustrating Metadatawith Microsoft Access
![Page 43: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/43.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
43
Illustrating Data Storage Managementwith Oracle
![Page 44: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/44.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
44
Summary
•Information is derived from data, which is storedin a database
•To implement and manage a database, use aDBMS
•Database design defines its structure
•Good design is important
![Page 45: Database design, implementation, and management -chapter01](https://reader034.vdocuments.site/reader034/viewer/2022052522/546f9e9fb4af9f210b8b45fb/html5/thumbnails/45.jpg)
Database Systems: Design, Implementation, & Management, 6th Edition, Rob & Coronel
1
45
Summary (continued)
•Databases were preceded by file systems
•Because file systems lack a DBMS, filemanagement becomes difficult as a filesystem grows
•DBMS were developed to address filesystems’inherent weaknesses