Professional Documents
Culture Documents
This model provide a basis for understanding some of the functionality of a Database Management System
(DBMS). Three distinct levels at which data items can be described. The level form a three-level architecture
comprising an internal, a conceptual, and and external level.
• Each user should be able to access the same data but have different costumized view of data. The change
if any should not affect the other user view
• User should not have to deal directly with physical database storage details, suc as indexing. User’s
interaction with the database should be independent of storage consideration
• The DBA should be able to change the db storage structure without affecting the user view
• etc
Pic : The ANSI-SPARC three-level architecture
Internal Level
• It covers the data structures and file organizations used to store data on storage devices
• For instance :
“data customer, internal level sees customer data as it has attribute named “address” that
stored at storage media with the size of 20 byte”
Conceptual Level
• Describes what data is stored in the database and the relationships among the data
• Contains the logical structure of the entire database as seen by the DBA. Its complete view of
the data requirements of the organization that is independent of any storage considerations.
• This level represents : all entities, their attributes, and their relationships; the constraints on the
data; semantic information about the data; security and integrity information;
• end-user app converts physical data into logical to user (data stored as yes or no, displayed as
the other)
• user are limited with the hardware and software ability that used by database app
Database Language
• Data Manipulation Language (DML) : used both to read and update the database
• Both called data sublanguage because they don’t include construct for all computing
needs, such as conditional and iterative statements, which are provided by the high level
programming language
• Many DBMSs have a facility for embedding the sublanguage in a high-level programming
language such as COBOL, Java, C#, C++, Pascal, Fortran, Visual Basic
Data Definition Language (DDL)
• A language that allows the DBA or user to describe and name the entities, attributes, and
relationships required for the application, together with any associated integrity and
security constraints
• The result of the compilation of DDL statement is a set of table stored in special files
collectively called the system catalog. It integrated the metadata (data that describes the
objects in the database and make it easier for those object to be accessed or
manipulated)
Data Manipulation Language (DML)
• A language that provides a set of operations to support the basic data manipulation
operations on the data held in the database
• Include : insertion of new data into the database (db); modification of data stored in db;
retrieval of data contained in db; deletion of data from the db;
Data Model
• Object-based data models use concepts such as entities, attributes, and relationships
• Attribute is a property that describes some aspect ot the object that we wish to record
• Three type of record-based data models: relational data model, network data model,
hierarchical data model
Relational Data Model
• based on the concept of mathematical relations. Data and relationships are represented
as tables, each of which has a number of columns with a unique name
Relational Data Model