User 1 User 2 User N External Level
User 1 User 2 User N External Level
Conceptual
Conceptual
Level
Schema
Physical Data
Organization Database
EXTERNAL LEVEL – the user’s view of the database. This level describes that part
of the database that is relevant to each other.
- contains the logical structure of the entire database as seen by the DBA.
- Represents: entities, attributes and relationships
Constraints on the data
Semantic information about the data
Security and integrity information
• Physical Level – maybe managed by the operating system under the direction of
the DBMS.
PROCEDURAL DML – language that allows the user to tell the system what data is
needed and exactly how to retrieve the data.
* User/Programmer specifies what data is needed and how to obtain it. This means
that the user must express all the data access operations that are to be used by calling
appropriate procedures to obtain the information required.
NON-PROCEDURAL DML – language that allows the user to state what data is needed
rather than how it is to be retrieved.
FOURTH-GENERATION LANGUAGES
TYPES OF 4GL:
1. FORM GENERATORS – is an interactive facility for rapidly creating data input and
display layouts for screen forms.
2. REPORT GENERATORS – facility for creating reports from data stored in the
database. It allows the user to ask questions of the database and retrieve information
from it for a report.
3. GRAPHICS GENERATORS – facility to retrieve data from the database and display
the data as a graph showing trends and relationships in the data.
- represents the organization itself. It provides the basic concepts and notations
that will allow database designers and end-users definitely and accurately to
communicate their understanding of the organizational data.
MODEL – is a representation of “real world” objects and events, and their associations.
- an concept that concentrates on the essential, inherent aspects of an
organization and ignores the accidental properties.
THREE COMPONENTS:
1. STRUCTURAL PART – consisting of a set of rules according to which databases can
be constructed.
2. MANIPULATIVE PART – defining the types of operation that are allowed on the
data(this includes the operations that are used for updating or retrieving data from the
database and for changing the structure of the database).
o Entity-Relationship
o Semantic
o Functional
o Object-oriented
FUNCTIONS OF A DBMS:
a. Data storage, retrieval, and update
b. User-accessible catalog
c. Transaction support
d. Concurrency control services
e. Recovery services
f. Authorization services
g. Support for data communication
h. Integrity services
i. Services to promote data independence
j. Utility services
COMPONENTS OF A DBMS:
a. Query processor
b. Database manager
c. File manager
d. DML pre-processor
e. DDL compiler
f. Catalog manager
a. Authorization control
b. Command processor
c. Integrity checker
d. Query optimizer
e. Transaction manager
f. Scheduler
g. Recovery manager
h. Buffer manager