1. Introduction to Databases Concepts
1. Introduction to Databases Concepts
DATABASE CONCEPTS
Syllabus
Database, DBMS Definition, Overview of DBMS, Advantages of DBMS, Levels of abstraction, Data
independence, DBMS Architecture
Many of usare very much familiar with the term called as data. We come across term "data" regularly in our day
to day life.
The name of a person, the price of a book, number of students in a college, pin code of a city, etc. are some
examples of data.
Inour daily life, we may need to remember the bulk amount of data, which is quiet difficult for us due to memory
constraints.
Example :
We may be in a position to tellaccurately the age, height, income,educational qualification, residential address,
etc. of our close friends.
But it could be very difficult for us to memorize all these information for a large number of individuals in an
organisation.
1 Data
The facts and figures that can be recorded in system and that have special meaning assigned to it is
called as data.
The system use to record these datacan bea manualsystem (register) or it can be a computerized system.
Example :
Data of a customer like name, telephone number, address and product purchased date etc.
As need of data increases, there is need to develop a computer-based system for storing and managing data
as a file system or information system.
2. Database
A
database is acollection of data items stored in one place and having some common base (Background)
between them.
Concente
Databases
Database Systems 1-2
Introductionto
college
canteen etc.
For Example : A students, books,
college
database contains data such as teachers, (Background) is called
Common (Base) between all above data common base
items. So, Data with a
Database. mechanismfor
The organized
database
acts as a logical collection of relevant data. It is designedto offeran
storing, managing and retrieving stored
information.
Student table
Department Table
Did Name
Marks Table
The heart of an Information System (IS) is database management system. This is because most
Information Systems (1S) have to handle huge amounts of data. This core module of an Information
System is alsocalled as Database Management System (DBMS).
Examples :
MS Access, Fox Pro by Microsoft.
Oracle by Oracle corp.
SQL Server By Microsoft.
Ingres, DB2 by lBM.
1. Dala integrity
2. Dala security
3. Data independence
5. Concurrency control
Data Independence can be defined as the capacity to change data kept at one place without changing data kept at
other locations.
4 Transaction control - Rollback
The changes made in the database can be reverted back with help of rollback command.
The changes can be saved successfully with the help of commit data command.
5 Concurrency control
The data in database can be accessed by multiple users at same point of time.
Tech Knowledge
PuDIirations
Database Systems Introduction to Databases Concepts
1-4
Such operations are
6.
Data recovery-
allowed by sharing: same data between multiple users.
Backup and Restore
failure
Database recovery is the process of restoring the (correct) state after database
The main element of database to original
database
If you maintain database backuprecovery
is
efficiently,thethen
most database backup.
recent recovery
database !is verystraightforward process.
1.3
Advantages of DBMS (File System v/s Database
1. System)
Redundancy can be reduced
As we are using
relational approach for dataorganization, data is not stored inmore than one location.
Repetitionof information can be avoided which in turn
2. saves storage Space
Inconsistency can be avoided
The database assures that allthe users
access actual or true data present in the
3 Data can be shared dataDase
Tech Knawledge
Database Systems 1-5 Introduction to Databases Concepts
Table 1,3.1
Computerized record - keeping system is used in Collection of individual fles accessed by applications
DBMS programs is called File Processing System
DBMS allows flexible access to data File - Processing System is designed to allow
predetermined access to data
It co-ordinates both the physical and logical It co-ordinates only the physical access to data
DBMS provides multiple user interface Data is isolated in the file system
Unauthorized access is restricted in DBMS Unauthorized access cannot be restricted
Redundancy can be controlled Redundancy cannot be controlled
14 Levels of Abstraction
1. Introduction
The goal of the three-schema architecture is to separate the front end (user applications interface) and the
back end (physical database).
The three-schema architecture is a tool with which the user can visualize the schema levels in a DBMS.
Many DBMS systems do not separate the three levels completely. but support the three-schema
architecture to some extent.
A
description of data in terms of adata model is called aschema.
The description of a database is called database schema, which is specified during database design and it
is not expected to change frequently.
2. Database architecture
Conceptual Model
Internal View
Create table Employee
(
Sno number (30),
Fname Varchar2 (50),
Lname Varchar2 (50),
Age numDer,
Salary Number (10,2),
BranchNo number(10)
):
Tech Knowledge
PuDIcations
Database Systems 1-7 Introduction to Databases Concepts
Each external schema describes the segment of thedatabase that is required for a particular user group and
hidesthe rest of the database from that user group.
External views are the proper interface between the user and the database, as an individual user can hardly
be expected to be interested in the entire database.
The external model isderived from the
conceptual model.
External view /schema
External schema consists of definitions of each of the various external data types in that external view.
End users
1.5.1 Types
Types of Data Independence
Tech Knewledge
Publcatlon5
Database Systems 1-9 Introduction to Databases Concepts
Compiler and
linker
DML queries DDL interpreter
Application
program DML compiler
object code and organizer
Query evaluation
engine query prooessor
Storage manager
Indices
Data dictionary Disk storage
Data
Statistical data
TechKnswledge
Pubcations
Database Systems 1-11 Introduction to Databases Concepts
Example:
Consider the situation in a library. Here, we have data corresponding to books, authors, suppliers, borrowers,
etc. The total volume of data stored and handled in a library may be quite large.
The Library DBMS may require several operations, such as issue, return or purchase of books; handle queries
related to book information, borrowing information, etc.
Moreover, there are different types of users who operate various stages or activities. For instance, a borrowe
may merely view certain information, whereas an issuer may be allowed to update the status of a book auring
issue or return.
The library staff may, on the other hand, add new books, their supplier, price and other information to tne
database.
Each user category has a different access right on both, the data, as well as the processing capabilities.
Multiple users may concurrently operate the library DBMS performing several tasks at the same time.
They may even try to access the same data simultaneously. It is the job of a DBMS to handle the data and its
processing in an integrated, coordinated and consistent manner.
Database Users
1.Naive users
2. Application programmers
3. Sophisticated users
4. Specialized users
1 Naive users
Naive users are users who interact with the system using application programs that have been developed
previously.
For example, Student wants to pay fees Rs.50 then accountant will invoke a program called fees_payment).
Thisprogram asksthe accountant for the amount of fees to be paid.
The typical graphical user interface for naive users is a kind of form interface, where the user can fill in
appropriate fields of the form.
A
given end user can access the database via one of the applications or can use an interface provided as an
integral part of the database system software (such interfaces are also supported by means of applications,
of course, but those applications are built-in, not user-written, e.g, query language processor).
Naive users can read reports generated from the database.
TechKaowledge
Publcattons
Databases Concepts
Database Systems Introductionto
1-12
2. Application programmers
database.
usethe
Application programmers responsible for writing application programsthat
application
prOgrams.
Application progranmmers are developers or professionals who
write
Application programmers computer
develop user interfaces using3any preferredlanguage. enable an application
Rapid Application opment (RAD) tools are nowadaysthat
programmer toconstructDevel
application
without writing code.
available
statements. Sucl.
Some language
programming languages conmbine control structures with database
languages, sometimes called fourth-generation languages.
3. Sophisticated users
querylanguage
Sophisticated users interact with application without writing| programs by using'a database
This query will be solved by
query processor. which
Online Analytical Processing (OLAP) tools is used to view summaries of data in different ways
which help them
tools, wh
helps analysts (e.g. sales of region, city etc.) with OLAP can use data mining
find certain kinds of patterns in analysts
data.
4.
Specialized users
Creates the actual database and implements technicalcontrals neededtoenforce various poncy decstos
Specialized users are sophisticated users who develop database applications.
Ine DBA 0s also responsible for ensuring that the system operates with adequate performance and lor
providing a variety of other related technical services.
1.9 Database Administrator (DBA)
Q. Define DBA. MU - Dec 18,2 Marks
The database administrator is responsible for the overall planning of the company's data resources, for the
design of data, and for the day-to-day operational aspects of data management.
A database administrator is a person responsible for the installation, configuration, upgradation, maintenance
and monitoring databases in an organization.
The overall planning of corporate data is the strategic aspect of the database administration function and
involves company-wide planning of existing data and assessment of organization-wise data standards.
1.9.1 Roles of DBA
He is also responsible for deciding on the storage and access methods. The DBA performs all data Sl.
or adding new fields into database.
TechKaowledga
Publlcatian 5
Database Systems 1-13 Introduction to Databases Concepts
Review Questions
Q. 3 What are the disadvantages of file processing system which were removed by DBMS ?
Q. 4 List the functions of a Database Administrator (DBA).
Tech Kaewledge
PubiCatio@s
Introductionto Data
O00