DB WEEK 2
DB WEEK 2
Database Systems
Week 2
Lecture 1& 2
Topics to Cover
• VIEWS OF DATA IN DBMS
• DATA ABSTRACTION
• DATA MODELS
• DBMS ARCHITECTURE.
• TYPES OF DBMS ARCHITECTURE.
• DATA INDEPENDENCE
• TYPES OF DATA INDEPENDENCE
Physical level: This is the lowest level of data abstraction. It describes how
data is stored in database. You can get the complex data structure details at
this level.
Logical level: This is the middle level of 3-level data abstraction architecture.
It describes what data is stored in database.
View level: Highest level of data abstraction. This level describes the user
interaction with database system.
In the following diagram, we have a schema that shows the relationship between three tables:
Course, Student and Section. The diagram only shows the design of the database, it doesn’t
show the data present in those tables. Schema is only a structural view(design) of a database as
shown in the diagram below.
1. HIGH-LEVEL OR
CONCEPTUAL DATA MODELS
2. REPRESENTATIONAL OR
Data models IMPLEMENTATION
MODELS
DATA
3. LOW-LEVEL OR PHYSICAL
DATA MODELS
Conceptual
Conceptual
Level Schema
Internal
Internal Schema
Level
Physical Data
Organization Database
22
External Schema
Saleem
External Layer
Lower Layers
24
Logical / Conceptual View
The users of
This level of this level are
not concerned Describes
abstraction with how these what data are
describes At this level, logical data stored in the
what data are the database structures will database
stored in the is described be implemented
(i.e,all the
database. It logically in at the physical
level, rather records and
also terms of
they just are relationships
describes the simple data-
concerned included in
relationships structures. about what the
existing information is database).
among data. to be kept in
the database.
External Layer
Conceptual Layer
OS responsibility
Physical Data
Organization Database
First Name: Rana Name: R. Aslam
Last Name: Aslam Saleema Age: 24y,10d
Date of Birth: Dept: Sales
12 Sep, 1970
Saleem
01110011010011100101001010100101010010101…..
35
Data Independence
and Its Types
01 02 03
It refers to the The application Modifications at
ability to modify programs remain the physical level
the scheme the same even are occasionally
followed at the though the necessary in
physical level
without affecting scheme at the order to improve
the scheme physical level performance of
followed at the gets modified. the system.
conceptual level.
Lahore Garrison University
37