Friday, September 9, 2022

what is mapping and its type:

 Mapping:

                 The process to convert a request from external level and result between view levels is called mapping. It defines the correspondence between three view levels; the mapping description is also stored in data dictionary.

In detail, three view levels are described by means of three schemas. Schemas are stored in data dictionary. In DBMS, each user refers only to its own external schemas. Hence, the DBMS must transform a request on a specified external schema into a request against conceptual schema and then into a request against internal schema to store and retrieve data to and from the database. DBMS is responsible for mapping between these three types of schemas.


There are two types of mapping:

 1. External conceptual mapping 

2. Conceptual physical mapping

1. External conceptual mapping

It defines the correspondence between a particular external view and the conceptual view. It shows that which object on the conceptual level corresponds to the object requested on a particular user’s external view. In case of any changes between the views the mapping must be changed accordingly.


2. Conceptual physical mapping:

 It defines the correspondence between the conceptual view and physical view i.e. database stored in physical storage device. It shows how conceptual records are stored and retrieved to and from the storage device. Overall, it describes that how conceptual records are physically stored. If the structure of stored database changed then mapping must also be changed accordingly

Friday, September 2, 2022

what is Data Independence.&types.

 Data Independence:-

                                The architecture of the DBMS can be viewed as a 3-level system comprising the                                            following:  

 The internal or the physical level where the data resides. The conceptual level which is the level of the DBMS functions. The external level is the level of the application programs or the end user. Changes in the lower level without affecting the upper level is data independence. 

In simple words, the ability to modify a schema definition in one level without affecting a schema definition in the next higher level is called data independence.

There are two levels of data independence:

 i) Physical data independence

 ii) Logical data independence

i) Physical data independence: It is the ability to modify the schema definition at the physical level without affecting the schema at the conceptual level.

ii) Logical data independence: It is the ability to modify the conceptual schema without causing any changes in the schema at view level. It ensures that the application programs remain the same, modifications at the conceptual level are necessary whenever logical structures of the database get altered because of some unavoidable reasons. External Leve