You are on page 1of 17

Database-3

Schema
• Schema is a repository or structure to express
the format and other different information
about data and database.
OR
• The description of the database is called the
database schema.

9/21/2021 Database Management System 2


University Database

9/21/2021 Database Management System 3


Example of Database Schema

9/21/2021 Database Management System 4


Database Architecture
• Database standard architecture was proposed
by ANSI SPARK in 1975.
• The 3-tier architecture is being used as a
slandered to develop new data base systems.

9/21/2021 Database Management System 5


Advantages of 3 tier Architecture
• The objective of the three-level architecture is
to separate the users’ view,
– It allows independent customized user views
– It hides the physical storage details from users
– The database administrator should be able to
change the database storage structures without
affecting the users’ views.
– The internal structure of the database should be
unaffected by changes to the physical aspects of
the storage.
9/21/2021 Database Management System 6
9/21/2021 Database Management System 7
External View
• External View (Level, Schema or Model):
– This level is explicitly an end user level and
presents data as desired by the users of the
database. As it is known that the database users
are classified on two grounds
o Section of the organization

o Nature of Job of the users

9/21/2021 Database Management System 8


External view

9/21/2021 Database Management System 9


External view

“External views are designed and create in


way that they can be modified at a later
stage without making any changes in the
logical or internal views.”

9/21/2021 Database Management System 10


Conceptual or Logical View:
• This is the level of database architecture
which contains the definition of all the data to
be stored in the database and also contains
rules and information about that structure
and type of that data.
• Complete description of the data stored

9/21/2021 Database Management System 11


Conceptual layer

9/21/2021 Database Management System 12


Internal schema
• This is the level of the database which is
responsible for the storage of data on the
storage media and places the data in such a
format that it is only readable by the DBMS.

9/21/2021 Database Management System 13


9/21/2021 Database Management System 14
Inter-Schema Mappings

• The mechanism through which the records or


data at one level is related to the changed
format of the same data at another level is
known as mapping.
• External/conceptual mapping
• Conceptual/Internal mapping

9/21/2021 Database Management System 15


Inter-Schema Mappings

9/21/2021 Database Management System 16


Example of 3-Tier Architecture

9/21/2021 Database Management System 17

You might also like