Types of Data Independence
Types of Data Independence
Data Independence is defined as a property of DBMS that helps you to change the Database
schema at one level of a database system without requiring to change the schema at the next
higher level. Data independence helps you to keep data separated from all programs that make
use of it.
Physical data independence helps you to separate conceptual levels from the internal/physical
levels. It allows you to provide a logical description of the database without the need to specify
physical structures. Compared to Logical Independence, it is easy to achieve physical data
independence.
With Physical independence, you can easily change the physical storage structures or devices
with an effect on the conceptual schema. Any change done would be absorbed by the mapping
between the conceptual and internal levels. Physical data independence is achieved by the
presence of the internal level of the database and then the transformation from the conceptual
level of the database to the internal level.
Due to Physical independence, any of the below change will not affect the conceptual layer.
Using a new storage device like Hard Drive or Magnetic Tapes
Modifying the file organization technique in the Database
Switching to different data structures.
Changing the access method.
Modifying indexes.
Changes to compression techniques or hashing algorithms.
Change of Location of Database from say C drive to D Drive
Logical Data Independence is the ability to change the conceptual scheme without changing
1. External views
2. External API or programs
Any change made will be absorbed by the mapping between external and conceptual levels.
o Physical data independence can be defined as the capacity to change the internal
schema without having to change the conceptual schema.
o If we do any changes in the storage size of the database system server, then the
Conceptual structure of the database will not be affected.
o Physical data independence is used to separate conceptual levels from the internal
levels.
o Physical data independence occurs at the logical interface level.
Due to Logical independence, any of the below change will not affect the external layer.
Logical Data Independence is mainly concerned Mainly concerned with the storage of the data.
with the structure or changing the data definition.
You need to make changes in the Application A change in the physical level usually does not
program if new fields are added or deleted from need change at the Application program level.
the database.
Modification at the logical levels is significant Modifications made at the internal levels may or
whenever the logical structures of the database may not be needed to improve the performance of
are changed. the structure.
Summary
Data Independence is the property of DBMS that helps you to change the Database
schema at one level of a database system without requiring to change the schema at the
next higher level.
Two levels of data independence are 1) Physical and 2) Logical
Physical data independence helps you to separate conceptual levels from the
internal/physical levels
Logical Data Independence is the ability to change the conceptual scheme without
changing
When compared to Physical Data independence, it is challenging to achieve logical data
independence
Data Independence Helps you to improve the quality of the data
Database Language
o A DBMS has appropriate languages and interfaces to express database queries and
updates.
o Database languages can be used to read, store and update the data in the database.
Types of Database Language
Data Definition Language
o DDL stands for Data Definition Language. It is used to define database structure or
pattern.
o It is used to create schema, tables, indexes, constraints, etc. in the database.
o Using the DDL statements, you can create the skeleton of the database.
o Data definition language is used to store the information of metadata like the
number of tables and schemas, their names, indexes, columns in each table,
constraints, etc.
These commands are used to update the database schema that's why they come under
Data definition language.
(But in Oracle database, the execution of data control language does not have the
feature of rolling back.)
There are the following operations which have the authorization of Revoke: