C01 Database - Systems WEEK 1&2 PDF
C01 Database - Systems WEEK 1&2 PDF
Database Systems
©2017 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part, except for use as permitted in a license distributed with a certain
product or service or otherwise on a password-protected website or school-approved learning management system for classroom use.
.
Outline
4
http://www.differencebetween.info/difference-between-data-and-information
Data vs. Information (cont..)
7
http://www.bbc.co.uk/education/guides/zb2hgk7/revision
Introducing the Database (cont..)
Figure 1.3 - The DBMS Manages the Interaction between the End User and the
Database
8
Introducing the Database (cont..)
11
Types of Databases (cont..)
12
Types of Databases (cont..)
13
Types of Databases (cont..)
• General-purpose databases:
Contains a wide variety of data
used in multiple disciplines
Type • Eg: LexisNexis, ProQuest
of • Discipline-specific databases:
stored Contains data focused on
data specific subject areas – mainly
used for research purpose
• e.g: CompuStat, GIS, medical
14
Types of Databases (cont..)
15
Types of Databases (cont..)
16
Types of Databases (cont..)
17
Why Database Design is
Important?
• Focuses on the design of the database structure
that will be used to store and manage end-user
data
• Well-designed database
• Facilitates data management
• Generates accurate and valuable information
• Poorly designed database causes difficult-to-trace
errors
18
Why Database Design is Important? (cont…)
20
Evolution of File System Data
Processing
Manual File Systems
Accomplished through a system of file folders and filing cabinets
Filing cabinet by
ten boxes by Jenny Spadafora (CC
mightymightymatze (CC BY-NC)
BY-NC-SA)
22
Evolution of File System Data Processing
(cont…)
Computerized File Systems
24
Evolution of File System Data Processing
(cont…)
A sample of spreadsheet 25
Problems with File System Data
Processing
Lengthy development times
Structural Dependence
• Structural dependence: Access to a file is
dependent on its own structure
• All file system programs are modified to
conform to a new file structure
• Structural independence: File structure is changed
without affecting the application’s ability to access
the data
27
Problems with File System Data Processing
(cont…)
Data Dependence
• Data dependence
• Data access changes when data storage
characteristics change
• Data independence
• Data storage characteristics is changed without
affecting the program’s ability to access the
data
28
Problems with File System Data Processing
(cont…)
Data Redundancy
• Unnecessarily storing same data at different places
• Islands of information: Scattered data locations
• Increases the probability of having different versions of
the same data
• Data redundancy implications
• Poor data security
• Data inconsistency (lack data integrity)
• Increased likelihood of data-entry errors when complex
entries are made in different files 29
Problems with File System Data Processing
(cont…)
Data Anomaly
Data anomaly: Develops when not all of the required changes in the
redundant data are made successfully
• Type of anomalies (refer to pp. 15):
• Update anomalies- eg: Update Leah HP no
• Insertion anomalies - how to add new agent without customer?
• Deletion anomalies - eg: to delete customer, also delete agent.
30
Database Systems
33
Figure 1.9 - The Database System Environment
Database Systems (cont…)
DBMS Functions
Data
dictionary Data dictionary: Stores definitions of
management the data elements and their
relationships
Data storage
management Performance tuning: Ensures efficient
performance of the database in terms
of storage and access speed
Data
transformation Transforms entered data to conform to
and required data structures
presentation
34
Database Systems (cont…)
DBMS Functions
Security
management Enforces user security and data privacy
Multiuser
access Sophisticated algorithms ensure that multiple
control users can access the database concurrently
without compromising its integrity
Backup and
recovery Enables recovery of the database after a
management failure
35
Database Systems (cont…)
DBMS Functions
Data integrity Minimizes redundancy and maximizes consistency
management
Database Query language: Lets the user specify what must be done without
access having to specify how
languages and
application
programming Structured Query Language (SQL): De facto query language and
interfaces data access standard supported by the majority of DBMS vendors
36
Database Systems (cont…)
Disadvantages of Database Systems
Increased costs
Management complexity
Maintaining currency
Vendor dependence