Physical Data Independence
Physical Data Independence
It mainly concern about how the data It mainly concerned about the structure
is stored into the system. or the changing data definition.
The modifications made at the internal The modifications made at the logical
level may or may not be needed to level is significant whenever the logical
improve the performance of the structure of the database is to be
structure. changed.
Anomalies
1- Update Anomaly: Let say we have 10 columns in a table out of
which 2 are called employee Name and employee address. Now if one
employee changes it’s location then we would have to update the table.
But the problem is, if the table is not normalized one employee can
have multiple entries and while updating all of those entries one of
them might get missed
.
2- Insertion Anomaly: Let’s say we have a table that has 4 columns.
Student ID, Student Name, Student Address and Student Grades. Now
when a new student enroll in school, even though first three attributes
can be filled but 4th attribute will have NULL value because he doesn't
have any marks yet
The Data Languages are categorized into four different types based upon the various
operations performed by the language. These include:
database languages are used to read, update and store data in a database.
There are several such languages that can be
used for this purpose; one of them is SQL
(Structured Query Language).
All of these commands either defines or update the database schema that’s why
they come under Data Definition language.
In practical data definition language, data manipulation language and data control
languages are not separate language, rather they are the parts of a single
database language such as SQL.