3 Schema Architecture
3 Schema Architecture
The conceptual schema hides the details of physical storage structures and concentrates
on describing entities, data types, relationships, user operations, and constraints.
If the request is a database retrieval, the data extracted from the stored
database must be reformatted to match the user’s external view.
Mappings: The processes of transforming requests and results between
levels are called mappings.
DATA INDEPENDENCE
Data independence is defined as the capacity to change the schema at one
level of a database system without having to change the schema at the next
higher level.
Two types of data independence are there:
Logical Data Independence
Physical Data Independence
Logical data independence is the capacity to change the conceptual
schema without having to change external schemas or application
programs.
Eg: expand the database (by adding a record type or data item), or to
reduce the database (by removing a record type or data item).
Application programs that reference the external schema constructs must
work as before, after the conceptual schema undergoes a logical
reorganization.
Changes to constraints can be applied also to the conceptual schema
without affecting the external schemas or application programs.
Physical data independence is the capacity to change the internal schema
without having to change the conceptual schema.
There won’t be any change in external schema as well.
Changes to the internal schema may be needed because some physical
files had to be reorganized.