Introduction To Databases
Introduction To Databases
Acció finançada pel Ministeri d’Educació i Formació Professional i per la Unió Europea - NextGenerationEU.
In order to have a framework in which to place the terms and concepts that
we will explain, we will distinguish three different areas:
● The real world with the objects of our interest.
● The world of logical conceptualizations.
● The world of computer representations.
Introduction to databases
The real world (miniworld), the
part of reality that interests us, is
what we perceive with our senses
and is composed of concrete
objects, physical or not.
Since we work in the Information
Systems (IS) field, the real worlds
we are interested in are
organizations: companies,
institutions, etc.
Introduction to databases
The conceptual design is the
modelization (creation of a
conceptual, abstract representation)
of the structure, properties and
functioning of reality.
The same real world can be seen,
conceived, modeled, in different
ways by different (or the same)
observers depending on
environment or perspective
(different views).
Introduction to databases
Conceptual schema: The set of
knowledge obtained by observing
a real world. In the sphere of
conceptions we build an abstract,
conceptual model of the real
world, and this helps us reason
and express ourselves.
Up to this point, the process is
independent of the DBMS that
will be used later on.
Introduction to databases
The conceptual world is a mental
world.
But in order to be able to work
with this knowledge and be able
to communicate it, we need to
project the thoughts to the
outside by physically
representing them in some way.
This is the world of logical and
physical representations
(dependent on the DBMS).
Introduction to
databases
What are databases?
Introduction to databases
Database: is a collection of related data.
Data: known facts that can be recorded and that have implicit meaning.
For example, consider the names, telephone numbers, and addresses of the
people you know. Nowadays, this data is typically stored in mobile phones,
which have their own simple database software.
Constructing the database is the process of storing the data on some storage
medium that is controlled by the DBMS.
Introduction to databases
Manipulating a database includes functions such as querying the database to
retrieve specific data, updating the database to reflect changes in the
miniworld, and generating reports from the data.
For example, one user, the grade reporting office, may keep files on students and their
grades. Programs to print a student’s transcript and to enter new grades are implemented
as part of the application.
A second user, the accounting office, may keep track of students’ fees and their payments.
Although both users are interested in data about students, each user maintains separate
files —and programs to manipulate these files— because each requires some data not
available from the other user’s files.
This introduces redundancy in defining and storing data results in wasted storage space and
in redundant efforts to maintain common up-to-date data.
Introduction to databases
In the database approach, a single repository maintains data that is defined once
and then accessed by various users repeatedly through queries, transactions, and
application programs. The main characteristics of the database approach versus the
file-processing approach are the following:
● Self-describing nature of a database system: the database system contains not
only the database itself but also a complete definition or description of the
database structure and constraints
● Insulation between programs and data, and data abstraction: changes in the
structure of the database do not require changes in the program
● Support of multiple views of the data
● Sharing of data and multiuser transaction processing
Introduction to databases
Introduction to databases
Advantages of using DBMS
● Redundancy control
● Restricted unauthorised access
● Persistent storage for program objects
● Search techniques for efficient query processing
● Backup and recovery
● Multiple users interfaces
Introduction to databases
Brief History of database applications
Sometimes a DBMS may involve unnecessary overhead costs that would not
be incurred in traditional file processing. These costs are due to the following: