Topic 3 Introduction To Database
Topic 3 Introduction To Database
INTRODUCTION
TO DATABASE
Assoc. Prof. Dr. Syed Norris Hikmi Syed Abdullah
Objectives
• To understand:
• The problems associated with
traditional file-based systems.
• Database (DB) and Database
Management System
• The Advantages of Database
2
Introduction
• The database is used in our day-to-day life that often we are not aware we are using
one.
• Two common terminologies used when discussing database:
• Database : a collection of related data
• Database Management System (DBMS) : the software that manages & controls access to the
database
Data Management
BEFORE AFTER
without computer with computer
Database: Review
6
Traditional File-
Based Systems
• Each department accessing their own files through application programs written specially for them.
• Each set of departmental application programs handles data entry, file maintenance, and the generation of specific
reports.
• The physical structure & storage of the data files and records are defined in the application code
7
Limitations of Traditional File-Based Systems
Separation and isolation of data Duplication of data Result, a new approach was required:
Each program maintains its own set of data. Same data is held by different programs. Database
Users of one program may be unaware of potentially Wasted space and potentially different values and/or Database Management System (DBMS).
useful data held by other programs. different formats for the same data.
Database Approach
• The limitations of the file-based approach can be attributed to
TWO factors:
• Definition of data was embedded in application programs,
rather than being stored separately and independently.
• No control over access and manipulation of data beyond
that imposed by application programs.
DBMS DB
Database Database
Management
System
Users DB
Applications
The Database
• The description of the data is known as the system catalogue (metadata) to enable
program–data independence.
• The definition of data is separated from the application program.
• The users of an object only see the external definition and unaware of how the object is
defined and how it functioned
control access to the Data Manipulation Language (DML) Allow to insert, update, delete and retrieve data.
17
Database Application Program (cont.)
• A view mechanism.
• Provides users with only the data they want or need to use.
Components of DBMS Environment
Components of DBMS Environment (cont.)
• Hardware
• Can range from a PC to a network of computers.
• Software
• DBMS, operating system, network software (if necessary) and also the application
programs.
• Data
• Used by the organization and a description of this data called the schema.
• Procedures
• Instructions and rules that should be applied to the design and use of the database
and DBMS.
• People
SUMMARY •
Limitation of File Based Approach :
Separation and isolation of data
• Duplication of data
File-based Approach • Data dependence
• Incompatible file formats
• Fixed Queries of application programs