Chapter 1 Introduction to DB
Chapter 1 Introduction to DB
Databases Systems
PROFESSIONAL CAREERS IN DATABASES
SCENARIO
▪ Consider the KyU which has over 10 000 students.
▪ The University has been keeping a large collection of information of its
campuses employees, students and resources. Imagine if they were
keeping them on traditional flat files?
▪ What do you think will be the state of the files?
▪ Data anomalies: abnormalities when all changes in redundant data are not made
correctly:
▪ Update anomalies – is a data inconsistency that results from a partial update of data
redundancy
▪ Insertion anomalies – data needs to be entered more than once if located in multiple
file systems
▪ Deletion anomalies – is the unintended loss of data due to deletion of other data.
PROBLEMS WITH FILE SYSTEM DATA PROCESSING
▪ Structural Dependence: means that access to a file is dependent on its
structure and any changes in the file structure affects the application
program’s ability to access the data.
▪ Data Dependence: after changes to the data storage characteristics (i.e.
data type), it is compulsory to make changes to the application
program accessing the data.
▪ Data Mapping and Access: Although all the related information are
grouped and stored in different files, there is no mapping between
multiple files.
PROBLEMS WITH FILE SYSTEM DATA PROCESSING
70
S1 CSC224 70 45 60 70
64
60
S2 CSC224 85 25 45 60 55
S3 CSC224 77 35 64 50 45 45 TEST 1
31 TEST 2
S4 CSC224 27 7 40 35 TEST 3
31
S5 CSC224 0 0 0 30 25
27
30
S6 CSC224 15 55 30 20 15
10 7
0 0 0 0
S1 S2 S3 S4 S5 S6
INTRODUCTION
TO
DATABASE
S
DATABASE TERMINOLOGY (2)
What is a Database?
▪ A database is a collection of data that is structured so that it can easily be
accessed, managed, and updated.
▪ It is a shared, integrated computer structure that stores a collection of:
▪ End-user data, that is, raw facts of interest to the end user.
▪ Metadata are data that describe the properties or characteristics of end-user data
and the context of that data.
▪ Metadata is data that provides a description of the data characteristics and the set of relationships that link
the data found within the database.
▪ Metadata present a more complete picture or description of the data in the database.
▪ Metadata include: data elements, data type (date, text, or numeric), relationship description, etc.