Unit 1.2
Unit 1.2
DATABASE
MANAGEMENT SYSTEM
UNIT – 1
INTRODUCTION
Comparison of Traditional file and Database
approach
Traditional File Vs Database Approach
Traditional File Approach Database Approach
Use separate data file for each application All Application shares a pool of related and
integrated data.
Data redundancy – independent data files included a Minimal data redundancy – Separate data files are
lot of duplicated data. integrated in to a single, logical structure.
Data inconsistency – several versions of the same Consistent data - Single version of data exist
data may exist.
Update must be done in all occurrences of same Single update is required.
data item in each file.
Users have very little opportunity to share data A database is developed to share the data among the
outside of their own application. user who access to it
There is no centralized control for overall data in There is centralized control for overall data in
different files. database.
Data dependence – description of files, records and Data independence – the database system separates
data items are embedded within individual application data descriptions from the application programs that
programs. use the data in it
Modification to data files requires the programs Data structure can be modified without changing
which access that file to be modified. the programs accessing the data
Lack of data integration – accessing data in several Data are organized in to a single logical structure with
files are difficult logical relationships defined between associated data
Difficult to manipulate data Easy to manipulate data
Three Level Architecture of DBMS
Three Level Architecture of DBMS
External Schema External Level External Level
External/Conceptual
Mapping
Conceptual Schema Conceptual Level
Conceptual/Internal
Mapping
Database
Three Level Architecture
• External level user/application view is defined by user/application
programmer in consultation with DBA.
• This architecture is divided into 3 levels:
(i) External Level
(ii) Conceptual Level
(iii) Internal Level
• The view at each level is described by a schema.
• Schema – an outline or a plan that describes the records &
relationships existing in a view.
External or user view
• External or user view is the highest level of database abstraction where only
those portions of the database are concerned to the user.
• ie. Application programs are included in the external view.
• Each external view is described by means of external schema.
External schema consists of:
• The definition of logical records
• The relationships in the external view
• The method of deriving the objects in the external view from the objects in the
conceptual view
• The objects includes entities, attributes & relationships.
Conceptual or Global View