Principals of Database (22321) : Prepared by Ms. Khan Sameera I/C If Hod M.H.Saboo Siddik Polytechnic
Principals of Database (22321) : Prepared by Ms. Khan Sameera I/C If Hod M.H.Saboo Siddik Polytechnic
(22321)
Prepared by
Ms. Khan Sameera
I/c IF HOD
M.H.Saboo Siddik Polytechnic.
Syllabus
Chapter 1: Basics of Database and Architecture (12M).
Data Information
DBMS
DBMS is a collection of Interrelated data.
Primary goal of DBMS is to provide a way
to store & retrieve those data.
Relation (Table)
Collection of Rows and Columns is called
Relation.
developed by Dr. E.F.Codd in 1970’s.
Rows – Records / Tuples
Columns – Fields / Attributes
• DBMS provide an environment to store
and retrieve information
Disadvantages of File
Processing System
File Based System
Before DBMS was invented, Information was stored
using File Processing System. In this System, data is
stored in permanent system files (secondary
Storage). Different application programs are written
to extract data from these files and to add record to
these files. But, There are Number of disadvantages
in using File Processing System, to store the data.
Disadvantages of File Processing System
Example:
• consider bank account A, containing Rs.500. If two
customers withdraw funds (Rs.50 and Rs.100 respectively)
at about same time, the result of concurrent executions may
leave the account in an incorrect state.
Example
payroll people only handle employee records, and cannot
see customer accounts; tellers only access account data
and cannot see payroll data.
Advantages DBMS over
File Processing System/
Purpose of Database
Advantages of DBMS File Processing System
No Data Redundancy
No Data Inconsistency
Data Integrity
Data share ability
Centralized Control
Provide data security
No Atomicity Problem
Independence of data & program
Performance & efficiency
Transaction Support
Disadvantages of DBMS
Cost of database
Cost of hardware and software
Storage Capacity
Backup facility
Backup and recovery operation are complex
Maintenance of database and server
Characteristics of DBMS
Control of data redundancy
Sharing of data
Data Integrity
Transaction Control - Rollback
Data Independence
Concurrency Control
Data Security
Data Recovery – Backup and restore
Comparison between
File Processing System and
DBMS
Sr. File Processing System DBMS
No.
1. Data Redundancy and No Data Redundancy and Inconsistency
Inconsistency
2. Data accessing is difficult Easy to access data
Banking System
Airlines Reservations
Railway Reservation
College
Universities
Sales
Manufacturing
RDBMS
ORACLE
My SQL
SQL server
IBM DB2
Sybase etc
View of Data – Data Abstraction
A major purpose of a database system is to
provide users with abstract view of the data.
i.e. the system hides certain details of how the
data are stored and maintained.
Instance
The collection of information stored in the
database at a particular moment is called the
‘Instance of the database’.
Schema
2) Logical Schema
Describes the database design at the logical level.
3) Subschema
Describes different views of the database.
Data Independence
The data independence can be defined as the
capacity to change one level of schema without
changing the schema at the next higher level.
Types:
(2M)