Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Application 1 View 1
View 2
Application 2 DBMS Database
View 3
Application 3
1.3 Objectives
A database should provide for efficient storage, update, and retrieval of data.
A database should be reliable - the stored data should have high integrity and promote
user trust in that data.
A database should be adaptable and scalable to new and unforeseen requirements and
applications.
A database should identify the existence of common data and avoid duplicate recording.
Selective redundancy is sometimes allowed to improve performance or for better
reliability.
Structure
data types
data behavior
Persistence
store data on secondary storage
Retrieval
a declarative query language
a procedural database programming language
Banking: transactions
Airlines: reservations, schedules
Universities: registration, grades
Sales: customers, products, purchases
Online retailers: order tracking, customized recommendations
Manufacturing: production, inventory, orders, supply chain
Human resources: employee records, salaries, tax deductions
Logical Level
Describes what data stored in database, and what relationships exist among the
data.
Describes the entire database in terms of small number of relatively simple
structure.
type instructor = record
ID : string;
name : string;
dept_name : string;
salary : integer;
end;
View Level:
Application programs hide details of data types. Views can also hide information
(such as an employee’s salary) for security purposes.
Data independence which means that upper levels are unaffected by changes in lower
levels.
In general, the interfaces between the various levels and components should be well
defined so that changes in some parts do not seriously influence others.
When a schema at a lower level is changed, only the mappings between this schema and
higher-lever schemas need to be changed in a DBMS that fully supports data
independence.
The higher-level schemas themselves are unchanged. Hence, the application programs
need not be changed since they refer to the external schemas.
Two types of independence
1. Physical Data Independence
2. Logical Data Independence
Physical Data Independence
It indicates that the physical storages structures or devices could be changed
without affecting the conceptual schema.
The ability to modify the physical schema without changing the logical schema.
Applications depend on the logical schema
Logical Data Independence
The capacity to change the conceptual schema without having to change the
external schemas and their application programs.
The conceptual schema can be changed without affecting the existing external
schemas.