Database Environment
Database Environment
ENVIRONMENT
CHAPTER 2
External Level
The users view of the database. This level describes
that part of the database that is relevant to each user.
The external level consists of a number of different
external views of the database. Each user has a view of
the real world represented in a form that is familiar for
that user.
The external view includes only those entities,
attributes, and relationships in the real world that the
user is interested in.
In addition, different views may have different
representations of the same data.
Conceptual Level
The community view of the database. This level describes what
data is stored in the database and the relationships among the
data.
This level contains the logical structure of the entire database as
seen by the DBA. It is a complete view of the data requirements of
the organization that is independent of any storage considerations.
The conceptual level represents:
Internal Level
The physical representation of the database on the computer.
This level describes how the data is stored in the database.
The internal level covers the physical implementation of the
database to achieve optimal runtime performance and storage
space utilization. It covers the data structures and file
organizations used to store data on storage devices.
The internal level is concerned with such things as:
Data Independence
A major objective for the three-level architecture is to provide data
independence, which means that upper levels are unaffected by
changes to lower levels. There are two kinds of data independence:
logical and physical.
DATABASE LANGUAGES
A data sublanguage consists of two parts: a Data
Definition Language (DDL) and a Data
Manipulation Language (DML).
The DDL is used to specify the database schema and
the DML is used to both read and update the database.
The part of a DML that involves data retrieval is called a query language.
DML: procedural and non-procedural. The prime difference between
these two data manipulation languages is that procedural languages
specify how the output of a DML statement is to be obtained, while nonprocedural DMLs describe only what output is to be obtained.
FUNCTIONS OF A DBMS