Chapter 2 Database
Chapter 2 Database
External Level:- An external level specifies a view of the data in terms of conceptual
level tables. Each external level view is used to cater to the needs of a particular category
of users. For Example, FACULTY of a university is interested in looking course details of
students, STUDENTS are interested in looking at all details related to academics, accounts,
courses and hostel details as well. So, different views can be generated for different users.
The main focus of external level is data abstraction.
Conceptual Level:- At conceptual level, data is represented in the form of various
database tables. For Example, STUDENT database may contain STUDENT and COURSE
tables which will be visible to users but users are unaware of their storage. Also referred
as logical schema, it describes what kind of data is to be stored in the database.
Internal Level:- At the physical level, the information about the location of database
objects in the data store is kept. Various users of DBMS are unaware of the locations of
these objects. In simple terms, physical level of a database describes how the data is being
stored in secondary storage devices like disks and tapes and also gives insights on
additional storage details.
Data Independence
Data independence means a change of data at one level should not affect another level.
Two types of data independence are present in this architecture:
Physical Data Independence:- Any change in the physical location of tables and indexes
should not affect the conceptual level or external view of data. This data independence is
easy to achieve and implemented by most of the DBMS.
Conceptual Data Independence:- The data at conceptual level schema and external level
schema must be independent. This means a change in conceptual schema should not
affect external schema. e.g.; Adding or deleting attributes of a table should not affect the
user’s view of the table. But this type of independence is difficult to achieve as compared
to physical data independence because the changes in conceptual schema are reflected in
the user’s view.
Types of Databases
Centralized Database:-
A Centralized Database is a type of database that is stored, located as well as maintained
at a single location only. This type of database is modified and managed from that location
itself. This location is thus mainly any database system or a centralized computer system.
The centralized location is accessed via an internet connection (LAN, WAN, etc). This
centralized database is mainly used by institutions or organizations.