DBMS Module 3 (1)
DBMS Module 3 (1)
7 Sessions
Data Abstraction
Data Abstraction
It helps to store information in such a way that the end user can access
data which is necessary, the user will not be able to see what data is
stored or how it is stored in a database.
It is the lowest level of data abstraction which defines how data is stored
in database .
It defines data structures used to store data and methods to access data in
database.
There are different levels of views and each view defines only a part of
whole data required to user.
Its common uses include the creation and alteration of tables, files,
indexes and columns within the database.
This language also allows users to rename or drop the existing database
or its components.
Data Manipulation Language (DML)
Data control language (DCL) controls access to the data that users
store within a database.
All the tasks must succeed in order for the transaction to work.
Common Commands
Database Architecture
USERS
QUERY PROCESSOR
STORAGE MANAGER
DATA
Database Users
Naive Users
Naive Users are the unsophisticated who don’t have any DBMS knowledge
but they frequently use the database applications in their daily life to get the
desired results.
Sophisticated Users
Sophisticated users can be engineers, scientists, business analyst, who are
familiar with the database. They can develop their own database applications
according to their requirement. They don’t write the program code but they
interact the database by writing SQL queries directly through the query
processor.
Database Users
Application Programmers
Application Programmers also referred as Software Engineers, are the back-
end programmers who writes the code for the application programs. They are
the computer professionals. These programs could be written in Programming
languages such as Visual Basic, Developer, C, FORTRAN, COBOL etc.
Authorization and integrity manager: Validates the users who want to access the data and
tests for integrity constraints.
Transaction manager: Ensures that the database remains in consistent despite of system
failures and concurrent transaction execution proceeds without conflicting.
File manager: Manages allocation of space on disk storage and representation of the
information on disk.
Buffer manager: Manages the fetching of data from disk storage into main memory. The
buffer manager also decides what data to cache in main memory. Buffer manager is a crucial
part of database system.
Data
Identify entities: Identify all the entities in the database and label them
Add attributes: Add attributes to each entity
Identify relationships: Identify how the entities are related
Connect entities: Connect the entities with a line and a diamond in the
middle to illustrate the relationship
Remove redundant entities: Remove any redundant entities or
relationships
Label relationships: Label the relationships with a brief description of
how they are related
Example