One of the advantages of a database approach is program-data independence this means that it is

What is Data Independence of DBMS?

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.

You can use this stored data for computing and presentation. In many systems, data independence is an essential function for components of the system.

In this tutorial, you will learn:

  • What is Data Independence of DBMS?
  • Types of Data Independence
  • Levels of Database
  • Physical Data Independence
  • Logical Data Independence
  • Difference between Physical and Logical Data Independence
  • Importance of Data Independence

Types of Data Independence

In DBMS there are two types of data independence

  1. Physical data independence
  2. Logical data independence.

Levels of Database

Before we learn Data Independence, a refresher on Database Levels is important. The database has 3 levels as shown in the diagram below

  1. Physical/Internal
  2. Conceptual
  3. External
One of the advantages of a database approach is program-data independence this means that it is
Levels of DBMS Architecture Diagram

Consider an Example of a University Database. At the different levels this is how the implementation will look like:

Type of SchemaImplementation
External Schema View 1: Course info(cid:int,cname:string)

View 2: studeninfo(id:int. name:string)

Conceptual Shema
Students(id: int, name: string, login: string, age: integer) 
Courses(id: int, cname:string, credits:integer) 
Enrolled(id: int, grade:string)
Physical Schema
  • Relations stored as unordered files.
  • Index on the first column of Students.

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.

Examples of changes under Physical Data Independence

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

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.

When compared to Physical Data independence, it is challenging to achieve logical data independence.

Examples of changes under Logical Data Independence

Due to Logical independence, any of the below change will not affect the external layer.

  1. Add/Modify/Delete a new attribute, entity or relationship is possible without a rewrite of existing application programs
  2. Merging two records into one
  3. Breaking an existing record into two or more records

Difference between Physical and Logical Data Independence

Logica Data IndependencePhysical Data Independence
Logical Data Independence is mainly concerned with the structure or changing the data definition. Mainly concerned with the storage of the data.
It is difficult as the retrieving of data is mainly dependent on the logical structure of data. It is easy to retrieve.
Compared to Logic Physical independence it is difficult to achieve logical data independence. Compared to Logical Independence it is easy to achieve physical data independence.
You need to make changes in the Application program if new fields are added or deleted from the database. A change in the physical level usually does not need change at the Application program level.
Modification at the logical levels is significant whenever the logical structures of the database are changed. Modifications made at the internal levels may or may not be needed to improve the performance of the structure.
Concerned with conceptual schema Concerned with internal schema
Example: Add/Modify/Delete a new attribute Example: change in compression techniques, hashing algorithms, storage devices, etc

Importance of Data Independence

  • Helps you to improve the quality of the data
  • Database system maintenance becomes affordable
  • Enforcement of standards and improvement in database security
  • You don’t need to alter data structure in application programs
  • Permit developers to focus on the general structure of the Database rather than worrying about the internal implementation
  • It allows you to improve state which is undamaged or undivided
  • Database incongruity is vastly reduced.
  • Easily make modifications in the physical level is needed to improve the performance of the system.

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

What are the advantages of the database approach?

A database management system helps improve organizational security, integration, compliance, and performance..
Improved data sharing and data security. ... .
Effective data integration. ... .
Consistent, reliable data. ... .
Data that complies with privacy regulations. ... .
Increased productivity. ... .
Better decision-making..

Which is an advantage of the database approach quizlet?

Many users can be authorized to access the same piece of information. Information is integrated so that multiple copies of the same data are not stored unless necessary. Some limited redundancy is permitted, but the DBMS is aware of the repetition. Stored data is consistent.

What is database approach in DBMS?

The database approach. The database approach is an improvement on the shared file solution as the use of a database management system (DBMS) provides facilities for querying, data security and integrity, and allows simultaneous access to data by a number of different users.

Which of the following items is not the advantage of a DBMS?

All of the above are true, High acquisition costs are not the advantage of a database management system. Explanation: Data redundancy has been minimized.