Data Base Architecture
Data Base Architecture
DATA BASE
ARCHITECHTURE
DBMS
Roll #s
1314,1322,1312,1310
submitted to Ma’m Sara
Mehmood G.C
University Faisalabad
DBMS [DATA BASE ARCHITECHTURE]
10
DBMS [DATA BASE ARCHITECHTURE]
10
DBMS [DATA BASE ARCHITECHTURE]
Mappings:
The process to convert a request (from external level) and the result between view levels
is called mapping. The mapping defines the correspondence between three view levels.
The mapping description is also stored in data dictionary. The DBMS is responsible for
mapping between these three types of schemas. There are two types of mapping.
1. External-Conceptual mapping
2. Conceptual-Internal mapping
DATA INDEPENDENCE:
10
DBMS [DATA BASE ARCHITECHTURE]
The disjointing of data descriptions from the application programs (or user-interfaces)
that uses the data is called data independence. Data independence is one of the main
advantages of DBMS. The three-schema architecture provides the concept of data
independence, which means that upper-levels are unaffected by changes to lower-levels.
The three schemas architecture makes it easier to achieve true data independence. There
are two kinds of data independence.
Physical data independence
The ability to modify the physical scheme without causing application
programs to be rewritten.
Modifications at this level are usually to improve performance.
10
DBMS [DATA BASE ARCHITECHTURE]
basic idea: hide implementation details of the database schemes from the
users.
Data Manipulation Language (DML)
Data Manipulation is:
o Retrieval of information from the database
o insertion of new information into the database
o deletion of information in the database
o modification of information in the database
A DML is a language which enables users to access and
manipulate data.
The goal is to provide ecient human interaction with the system.
There are two types of DML:
Non-Procedural DML:
A high-level or non-procedural DML allows the user to specify what data is
required without specifying how it is to be obtained. Many DBMSs allow high-
level DML statements either to be entered interactively from a terminal or to be
embedded in a general-purpose programming language.
Procedural DML:
A low-level or procedural DML allows the user, i.e. programmer to specify
what data is needed and how to obtain it. This type of DML typically retrieves
individual records from the database and processes each separately. In this
language, the looping, branching etc. statements are used to retrieve and process
each record from a set of records. The programmers use the low-level DML.
Data modeling:
The purpose of Data Modelling is to aid the understanding of the data and its semantics
(meaning). Different users will have different perspectives of the data, and so, these
perspectives need to be designed and understood. Data modelling allows independent
analysis of the data, irrespective of how it is physically stored and represented. Because
of this distancing of the data model from the physical storage system, data models can be
applied to any platform. Building data models based on a common syntax that is widely
understood means that the data model and design can be understood by many more
individuals than just the designer.
Logical Data Model
Logical database design has the aim of creating a data model that is completely
independent from any particular DBMS or software/hardware platform. A conceptual
10
DBMS [DATA BASE ARCHITECHTURE]
model is typically needed before the logical model is constructed. If the system is a
particularly large one, it is often the case that individual logical models are constructed
for each user view or area within the business. These separate models are then merged
into a global logical data model.
An example logical data model of a simple library system is shown below:
The conceptual model purely documents the data and information within the business
and how it is used. The logical model is different from the conceptual model in that it
takes into consideration the relational or object-oriented theory which will be used to
store the data. In some cases, the conceptual data model may be the same as the logical
data model.
10
DBMS [DATA BASE ARCHITECHTURE]
DBMSs were popular from the late 1960s, with the introduction of IBM's
Information Management System (IMS) DBMS, through the 1970s.
Relational Datamodel:
(RDBMS - relational database management system) A database based on the
relational model developed by E.F. Codd. A relational database allows the
definition of data structures, storage and retrieval operations and integrity
constraints. In such a database the data and relations between them are organised
in tables. A table is a collection of records and each record in a table contains the
same fields.
Certain fields may be designated as keys, which means that searches for specific
values of that field will use indexing to speed them up. Where fields in two
different tables take values from the same set, a join operation can be performed
to select related records in the two tables by matching values in those fields.
Often, but not always, the fields will have the same name in both tables. For
example, an "orders" table might contain (customer-ID, product-code) pairs and a
"products" table might contain (product-code, price) pairs so to calculate a given
customer's bill you would sum the prices of all products ordered by that customer
by joining on the product-code fields of the two tables. This can be extended to
joining multiple tables on multiple fields. Because these relationships are only
specified at retreival time, relational databases are classed as dynamic database
management system. The RELATIONAL database model is based on the
Relational Algebra.
10
DBMS [DATA BASE ARCHITECHTURE]
10
DBMS [DATA BASE ARCHITECHTURE]
Refrence:
1. Aho, A. V., B.W. Kernighan, and P. J.Weinberger [1988]. The AWK
programming
Language, Addison-Wesley, Reading, Mass.
2. Astrahan, M. M., et al. [1976]. “System R: a relational approach to data manage-
ment,” ACM Trans. on Database Systems 1:2, pp. 97–137.
3. Chamberlin, D. D., et al. [1976]. “SEQUEL 2: a unified approach to data
definition,
manipulation, and control,” IBM J. Research and Development 20:6, pp. 560–575.
4. Codd, E. F. [1970]. “A relational model for large shared data banks,” Comm.
ACM
13:6, pp. 377–387.
5. Batini, Carol, Stefano Ceri, and Shamkant B. Navathe. Conceptual Database
Design: an Entity-Relationship Approach.
Redwood City, California 94065: The Benjamin/Cummings Company; Inc., 1992. 1-
470.
6. Celko, Joe. SQL FOR SMARTIES: Advanced SQL Programming. 3rd ed. San
Francisco California 94111: Morgan Kaufmann
Publications, 2005. 1-838.
7. Stonebraker, M., E. Wong, P. Kreps, and G. Held [1976]. “The design and imple-
mentation of INGRES,” ACM Trans. on Database Systems 1:3, pp. 189–222.
8. Ullman, J. D. [1988]. Principles of Database and Knowledge-Base Systems (two
volumes) Computer Science Press, New York.
10