(DBMS)
Dr. Subrat K Dash
LNMIIT
Course Information
Database Management Systems (DBMS)
Credit: 3
4 slots per week
TUE (12-1pm), WED (11-12noon), THU (10-11am), FRI
(8-9am)
DBMS Lab
Credit: 2
1 lab (3 hours duration) per week
Dr. Subrat K Dash
Books
Ramez Elmasri and Shamkant B Navathe, Fundamentals of
Database Systems, Addison Wesley.
Raghu Ramakrishnan and Johannes Gehrke, Database
Management Systems, McGraw Hill.
Grading
Regular assessment 30%
Midterm 25%
Endterm 45%
Any change to this will be communicated well
in advance.
INTRODUCTION
Database
Journey to Database!
Evolution of Data Systems
Manual, Sequential, Databases
Technology Explosion
Data Storage Devices
Computer Applications
DP, MIS, DSS, DW&DM
Database
A database is a collection of related data.
Data: Facts that can be recorded and have implicit meaning
Properties
Represents some aspects of the real world
Logically coherent collection of data with some inherent
meaning
Designed, built and populated with data for a specific purpose
An example
University Database
Data about students, faculty members, courses,
laboratories etc.
Reflects the state of affairs of the academic
aspects of the university.
Purpose: To keep an accurate track of the
academic activities of the university.
DBMS Approach
DBMS Properties
Control Redundancy
Reduces duplication and thus wastage of space is avoided
Checks inconsistencies
Authorized access
Control retrieval and update
Persistent storage
For program objects and data structures
DBMS implementation
Transaction management, Storage, Indexes etc.
Dr. Subrat K Dash
Data Models
Data Model: A set of concepts to describe the
structure of a database at a certain level of
abstraction.
Helps in communication and application development
Three-Schema Architecture
(Abstraction levels in a DBMS)
View Level
(VL) Schema
V1
V2
Vm
VL LL Mapping
Logical Level
(LL) Schema
R1
R2
LDI
Rn
F1
F2
Set of relations
PDI
LL PL Mapping
Physical
Level (VL)
Schema
Set of views
Fp
Data: Set of
files/ index files
Three-Schema Architecture
View Level Schema
Each view describes an aspect of the database
relevant to a particular group of users.
Example: Library Database
Books Purchase Section
Issue/Returns Management Section
Users Management Section
Three-Schema Architecture
Logical Level Schema
Describes the logical structure of the entire
database.
No physical level details are given.
Data Independence
Physical Data Independence (PDI)
The ability to modify physical level schema without
affecting the logical or view level schema.
Performance tuning modification at physical level
creating a new index etc.
Data Independence
Only the mappings need to be changed
V1
V2
Vm
VL LL Mapping
R1
R2
Rn
Functional requirements
various operations that need to be performed as part
of running the enterprise.
acquiring a new book, enrolling a new user, issuing a book to
the user, recording the return of a book etc.