Professional Documents
Culture Documents
Chap 2
Chap 2
Database Environment
Batch: F-18IT
Subject: Database Systems
Course Facilitator:
Dr. Asghar Ali Chandio
Learning Outcomes
At the end of this chapter, students will be able to learn:
The purpose of ANSI/SPARC Architecture
The contents of the external, conceptual, and internal levels
The purpose of the external/conceptual and the
conceptual/internal mappings
The meaning of logical and physical data independence
Data definition and data manipulation language
A classification of data models
The purpose and importance of conceptual modeling
The typical functions and services that a DBMS should
provide
Objectives of Three-Level Architecture
ANSI - American
National
Standards Institute
SPARC -
Standards
Planning and
Requirements
Committee
ANSI-SPARC Three-Level Architecture
External Level
The way users perceive the data.
Describes that part of database that is relevant to a particular user.
Conceptual Level
Community view of the database.
Describes what data is stored in database and relationships among
the data.
Provides mapping and desired independence b/w external and
internal levels.
Internal Level
The way the DBMS and the OS perceive data.
Physical representation of the database on the computer.
Describes how the data is stored in the database.
Schemas, Mappings, and Instances
The overall description of the database is called database
schema
At the highest level, multiple external schemas (also called
subschemas) correspond to different views of the database
At conceptual level, the conceptual schema describes all the
entities, attributes and the relationships together with the
integrity constraints
At lowest level, the internal schema describes the internal
model, definition of stored records, method of representations,
data fields, indexes and storage structure
The data in the database at any particular point in time is
called a database instance
The schema is sometimes called the intension of the database;
an instance is called an extension (or state) of the database
Differences between Three Levels of
ANSI-SPARC Architecture
Data Independence and the ANSI-SPARC Three-
Level Architecture
Purpose
To represent data in an understandable way.
Data Models
Categories of data models include:
Object-based
Record-based
Physical.
Relational Model
Conceptual Modelling
Concurrency control
Functions of a DBMS