1.1 Purpose of Database System
1.1 Purpose of Database System
2
Difficulty in accessing data:
❖ File processing environments do not allow needed data to be retrieved in a convenient and efficient
manner.
Data isolation
❖ Because data is scattered in various files, and files may be in different formats, writing new
application programs to retrieve the appropriate data is difficult.
Integrity problems
❖ The data values stored in the database must satisfy certain types of consistency constraints.
Example:
● The balance of certain types of bank accounts may never fall below a prescribed amount.
● Developers enforce these constraints in the system by addition appropriate code in the various
application programs
Atomicity problems
❖ Atomic means the transaction must happen in its entirety or not at all.
❖ It is difficult to ensure atomicity in a conventional file processing system.
Example:
Let us suppose that you have a savings account with the balance 5000 and a loan account with
an outstanding of 3000. This is the old consistent state. Now you would like to transfer 500 to your
loan account. If this transaction is successful, then your savings balance should be 4500 and loan
outstanding should be 2500. This is the new consistent state. Suppose a failure occurs during this
transaction, the database must be in any one of the 2 consistent states mentioned above.
It is hard to maintain atomicity in file processing systems due to data redundancy, data isolation etc.
Example:
● When several reservation clerks try to assign a seat on an airline flight, the system should
ensure that each seat can be accessed by only one clerk at a time for assignment to a passenger.
Security problems
❖ Enforcing security constraints to the file processing system is difficult.
3
Concurrent access anomalies
❖ Simultaneous access of a data item should be handled carefully.
For example, if only one ticket is there and two customers are trying to book the ticket
simultaneously, the ticket should be allotted to any one customer.
❖ It is difficult to handle in a file processing system due to the fact of data isolation, redundancy etc.
APPLICATIONS OF DATABASE:
❖ Banking: all transactions
❖ Airlines: reservations, schedules
❖ Universities: registration, grades
❖ Sales: customers, products, purchases
❖ Manufacturing: production, inventory, orders, supply chain
❖ Human resources: employee records, salaries, tax deductions
❖ Telecommunication: Call History, Billing
❖ Credit card transactions: Purchase details, Statements
DIFFERENCE BETWEEN FILE SYSTEM & DBMS
4
TWO MARKS FOR THE TOPIC : PURPOSE OF DATABASE SYSTEMS
1. Define database management system?
Database management system (DBMS) is a collection of interrelated data and a set of programs to access
those data.
2. List some applications of DBMS.
a) Banking
b) Airlines
c) Universities
d) Credit card transactions
e) Telecommunication
f) Finance
g) Sales
h) Manufacturing
i) Human resources
3. What are the disadvantages of a file processing system?
The disadvantages of file processing systems are
a) Data redundancy and inconsistency
b) Difficulty in accessing data
c) Data isolation
d) Integrity problems
e) Atomicity problems
f) Concurrent access anomalies
4. What are the advantages of using a DBMS?
The advantages of using a DBMS are
a) Controlling redundancy
b) Restricting unauthorized access
c) Providing multiple user interfaces
d) Enforcing integrity constraints.
e) Providing backup and recovery