Chapter 1 - Introduction To Database Systems
Chapter 1 - Introduction To Database Systems
1 11/20/24
Outlines
Overview of Database/Introduction
Benefits of DB systems
Users and actors of DB system
DB development life cycle
Workers behind the Scene
2 11/20/24
Overview
Databases and database systems are an essential
component of life in modern society:
most of us encounter several activities every day that
involve some interaction with a database. E.g
if we go to the bank to deposit or withdraw funds
if we make a hotel or airline reservation,
if we access a computerized library catalog to search
for a bibliographic item,
if we purchase something online—such as a book, toy,
or computer—chances are that our activities will involve
someone or some computer program accessing a
database.
3 11/20/24
Introduction … cont’d
What is database?
An organized collection of logically related data.
A shared collection of interrelated data designed to
meet the varied information needs of an organization.
A shared collection can be used simultaneously by
many departments and users.
Logically related comprise the important objects and
the relationships between these objects.
IT play a critical role in almost all areas where
computers are used, in business, Ecommerce,
engineering, medicine, genetics, law, education, and
library science.
4 11/20/24
Database Basics
A database has the following implicit properties:
A database represents some aspect of the real world,
sometimes called the subsets of real world or the
Universe of Discourse (UoD).
Changes to the mini world are reflected in the database.
DB is a logically coherent collection of data with some
inherent meaning.
The description "a logically coherent collection of data with
some inherent meaning" highlights two critical aspects of a
database: logical coherence and inherent meaning.
5 11/20/24
Database Basics
Logically Coherent Collection of Data:
6 11/20/24
Database Basics
Consistency: The data follows rules of integrity,
ensuring that it is reliable and meaningful.
E.g a customer ID in one table might link to customer
details in another table.
Accessibility: Logical organization facilitates efficient
data retrieval and manipulation through structured
queries (SQL).
A random assortment or collection of data cannot
correctly be referred to as a database.
DB is designed, built, and populated with data for a
specific purpose.
7 11/20/24
Database Basics
Meta Data: What do we mean by meta data?
Descriptions of the properties or characteristics of
the data, including data types, field sizes,
allowable values.
Data that describes data
Data about data
Description of fields
Display and format instructions
Structure of files and tables
Security and access rules
Triggers and operational rules
8 11/20/24
Database Basics …. cont’d
Metadata
Data Item Value
Name Type Length Min Max Description
9 11/20/24
Data management approaches
Data management: keeping your data records. The three
approaches to do it:
Manual Approach
File-Based Approach
Database Approach
10 11/20/24
Manual File Handling
Systems ..cont’d
Limitations of Manual File Handling
Problem of Data Organization
Problem of Efficiency
Prone to error
Difficult to update, retrieve, integrate
difficult to compile the information
Significant amount of duplication of data
Cross referencing is difficult
12 11/20/24
Limitations of File-Based systems
Data Redundancy (Duplication of data)
Same data is held by different programs
Staff salary(staffno, name, sex, salary)
Staff(staffno, name, position, sex, DoB, salary)
Wasted space (Uncontrolled duplication of data)
Separation and isolation of data
Each program maintains its own set of data.
Users of one program may be unaware of
potentially useful data held by other programs.
Limited data sharing- No centralized control of data
Data Inconsistency , confusion and Data dependence:
File structure is defined in the program code and is
dependent on the application programming language.
13 11/20/24
Limitations of File-Based systems ..
Cont’d
Incompatible file formats - Lack of data sharing and
availability)
Programs are written in different languages, and so
cannot easily access each others files.
14 11/20/24
Database Approach
Here, a single repository of data is maintained.
Basic Database terminologies;
Enterprise: an organization like library, bank, university.
Entity: Person, place, thing, or event about which we wish
to keep data
Attribute (Field): Property of an entity. E.g. Name, age,
sex..
Record: A logically connected set of one or more Attributes
that describe a person, place or thing. (Logically related
data)
File: A collection of related records. E.g. Student file
Relationship: an association among entities (entity
records)
Query: question asked for database
15 11/20/24
Benefits of Database systems
Data can be shared: Two/ more users can access and
use.
Improved data accessibility: By using structured query
languages, the users can easily access data without
programming experience.
Redundancy can be reduced: Isolated data is
integrated in database.
Quality data can be maintained: the different integrity
constraints in the database approach will maintain the
quality leading to better decision making.
Inconsistency can be avoided: controlled data
redundancy will avoid inconsistency of the data in DB.
Transaction support can be provided: basic demands of any
transaction support systems are implanted in a full scale DBMS.
16 11/20/24
Benefits of Database systems … cont’d
Integrity can be maintained: Data at different applications
will be integrated together with additional constraints.
Security measures can be enforced: The shared data can be
secured by data security mechanisms.
Improved decision support: the database will provide
information useful for decision making.
Standards can be enforced: ways of using different data
by users.
Less Labor: data maintenance will not demand much
resource.
Centralized information control: Since relevant data in the
organization will be stored at one repository, it can be
controlled and managed at the central level.
Data Independence - Applications insulated from how data is
structured and stored.
17 11/20/24
Limitations and risk of database
approach
18 11/20/24
Users and Actors of Database
System
Actors on the scene: The people whose jobs involve
the day-to-day use of a large database.
Workers behind the scene: Those who work to
maintain the database system environment, but
who are not actively interested in the database
itself.
Actors on the Scene
Database Administrators
Database Designers
End Users
System Analysts and Application Programmers
(Software Engineers)
19 11/20/24
Database Administrators
In a database environment, the primary resource is
the database itself and the secondary resource is the
DBMS and related software.
Administering these resources is the responsibility of
the Database Administrator (DBA).
The DBA is responsible for authorizing access to the
database, for coordinating and monitoring its use,
and for acquiring software and hardware resources as
needed.
The DBA is accountable for problems such as breach
of security or poor system response time.
20 11/20/24
Database Designer
Are responsible for identifying the data to be stored in
the database
and for choosing appropriate structures to represent
and store this data.
It is the responsibility of database designers to
communicate with all prospective database users, in
order to understand their requirements and to come
up with a design that meets these requirements.
In many cases, the designers are on the staff of the
DBA and may be assigned other staff responsibilities
after the database design is completed.
The final database design must be capable of
supporting the requirements of all user groups.
21 11/20/24
End Users
End users are the people whose jobs require access
to the database for querying, updating, and
generating reports;
The database primarily exists for their use.
23 11/20/24
End Users … Cont’d
Sophisticated end users: Include engineers, scientists,
business analysts who thoroughly familiarize themselves
with the facilities of the DBMS so as to implement their
applications to meet their complex requirements.
24 11/20/24
System Analysts and Application
Programmers (Software
Engineers)
System analysts: Determine the requirements of end
users, especially naive or parametric end users,
Develop specifications for canned transactions that
meet these requirements.
Application programmers implement these
specifications as programs; then they test, debug,
document, and maintain these canned transactions.
Such analysts and programmers (nowadays called
software engineers) should be familiar with the full
range of capabilities provided by the DBMS to
accomplish their tasks.
25 11/20/24
A DBMS is a generalized software package for
implementing and maintaining a computerized
database.
The database and software together form a
database system.
26 11/20/24
Database Development Life
Cycle
The major steps in database design are;
1. Planning: That is identifying information gap in an
organization and propose a database solution to
solve the problem.
2. Analysis: That concentrates more on fact finding
about the problem or the opportunity.
Feasibility analysis, requirement determination
and structuring, and selection of best design
method are also performed at this phase.
3. Design: in database designing more emphasis is
given to this phase.
27 11/20/24
4.Implementation: coding, testing and deployment
of the designed database for use.
28 11/20/24
Workers behind the Scene
These persons are typically not interested in the database
itself. These include:
DBMS system designers and implementers:-are persons
who design and implement the DBMS modules and
interfaces as a software package.
A DBMS is a complex software system that consists of
many components or modules, including modules for
implementing the catalog, query language, interface
processors, data access, concurrency control, recovery,
and security.
The DBMS must interface with other system software, such
as the operating system and compilers for various
programming languages.
29 11/20/24
Workers behind the Scene …
cont’d
Tool developers: Include persons who design and
implement tools
Tools are software packages that facilitate
database system design and use, and help improve
performance.
Tools are optional packages that are often
purchased separately.
Operators and maintenance personnel: are the
system administration personnel who are
responsible for the actual running and maintenance
of the hardware and software environment for the
database system.
30 11/20/24
Some Common uses of Databases
In a university
Containing information about a student, the course
she/he is enrolled in, the dormitory she/he has been
given.
Containing details of Staff who work at the university at
personnel, payroll, etc.
In a library
There may be a database containing details of the books
in the library and details of the users,
The database system handles activities such as
Allowing a user to reserve a book
Notifying when materials are overdue.
31 11/20/24
Some Common uses of Databases …
Cont’d
In travel agencies
When you make inquiries about a travel, the travel agent
may access databases containing flight details like Flight
no., date,
Supermarkets
When you buy goods from some supermarkets, a database
will be accessed.
The checkout assistant will run a barcode reader over the
purchases.
32 11/20/24
the end
?
33 11/20/24