UNIT 1: Database Systems
UNIT 1: Database Systems
CONTENTS
🞭 Applications of RDBMS
BASIC TERMINOLOGIES
🞭 Data:-
🞭 It is a collection of Facts and Figures that can be recorded and processed
based on some business logic.
🞭 (Facts are recorded in the form of Text, Image, Video, Audio etc..).
🞭 Information :-
🞭 The Data is processed to produce the information , that can be meaningfully
used.
🞭 Database:-
🞭 It is a Collection of Related data that represents real world entities.
WHAT IS DBMS?
🞭 DBMS stands for Database Management System.
🞭 Database + Management System
🞭 Database :- Collection of related data.
🞭 Management System:- It is a set of program to store & retrieve those data.
🞭 DBMS:- It is a Collection of interrelated data & set of program to store &
retrieve those data in an easy & efficient manner.
OR
🞭 DBMS is a software application ,used to manage data.
🞭 Some of the most commonly used database Management System includes
MYSQL, ORACLE, Microsoft SQL server and there are many such popular
DBMS Software available in Market.
WHAT IS NEED/PURPOSE OF DATABASE SYSTEM?
INTRODUCTION OF FILE PROCESSING SYSTEM
🞭 Non-Sharing of data
🞭 If different systems of an Organizations are using some common data rather
than storing it once and sharing it, each system will store data in separate
files.
🞭 This creates the problem of Redundancy or wastage of storage.
DISADVANTAGES OF FILE PROCESSING SYSTEM
🞭 Data Redundancy:
🞭 It is possible that the same information may be duplicated in different files. This
leads to data redundancy results in memory wastage.
🞭 Data Inconsistency:
🞭 Due to data redundancy, same data stored at different places might not match to
each other.
🞭 Data Integrity Problems:
🞭 The data present in the files should be consistent and correct(valid). To achieve
this, the data should must satisfy certain constraints.
🞭 Data Isolation:
🞭 Data is isolated in File Processing System and data is stored in different files.
These files can be in different formats. If you want to extract data from two file
then you are required to which part of the file is needed and how they are related
to each other.
🞭 So, writing new application programs to retrieve the appropriate data is difficult.
CONTINUE
🞭 Atomicity Problem:
🞭 Atomicity is required to save data values, it means that information is
completely entered or canceled at all.
🞭 Any system may fail at any time and at that time it is desired that data should be
in a inconsistent state.
🞭 Problem in Concurrent Access:
🞭 When a number of users operates simultaneously on a common data at the same
time, It is difficult to handle in file processing system due to the data isolation,
redundancy etc.
🞭 Data security
🞭 Data security means prevention of data accession by unauthorized users.
🞭 Poor data security is the most threatening problem in File Processing System.
There is very less security in File Processing System as anyone can easily
modify and change the data stored in the files. All the users must have some
restriction of accessing data up to a level.
CONTINUE
Hard to Update
The changes in the data in one file is not reflected in the same data stored in other file.
Hard to Handle
Requires a lengthy code to handle Files.
Difficulty to Backup
It is hard to make backup .
Time Consuming
It is lengthy process , also time consuming approach to store data
INTRODUCTION DBMS
🞭 DBMS stands for Database Management System.
🞭 Database + Management System
🞭 Management System:- It is a set of program to store & retrieve those data.
🞭 DBMS:- It is a Collection of interrelated data & set of program that enables user to store,
retrieve, update and delete information from a database in an easy & efficient manner.
🞭 Database management system is software that is used to manage the data or
database .
🞭 Some of the most commonly used database Management System includes MYSQL,
ORACLE, Microsoft SQL server and there are many such popular DBMS Software
available in Market.
🞭 DBMS provides an interface to perform various operations like database creation,
storing data in it, updating data, creating a table in the database and a lot more.
🞭 It provides protection and security to the database. In the case of multiple users, it also
maintains data consistency.
WHAT IS DATABASE
🞭 The database is a collection of inter-related data which is used to retrieve, insert and
delete the data efficiently.
🞭 It is also used to organize the data in the form of a table, schema, views, and
reports, etc.
🞭 For example: The college Database organizes the data about the admin, staff,
students and faculty etc.
🞭 Using the database, you can easily retrieve, insert, and delete the information.
WHAT IS THE NEED OF DBMS?
🞭 Database systems are basically developed for large amount of data.
🞭 When dealing with huge amount of data, there are two things that require
optimization: Storage of data and retrieval of data.
🞭 Data Definition: It is used for creation, modification, and removal of definition that
defines the organization of data in the database.
🞭 Data Updation: It is used for the insertion, modification, and deletion of the actual
data in the database.
🞭 Data Retrieval: It is used to retrieve the data from the database which can be used
by applications for various purposes.
🞭 User Administration: It is used for registering and monitoring users, maintain data
integrity, enforcing data security, dealing with concurrency control, monitoring
performance and recovering information corrupted by unexpected failure.
INTRODUCTION TO RDBMS
🞭 Airlines: reservations, schedules, etc
🞭 Telecom: calls made, customer details, network usage, etc
🞭 Universities: registration, results, grades, etc
🞭 Sales: products, purchases, customers, etc
🞭 Banking: all transactions etc
INTRODUCTION TO RDBMS
🞭 A Relational Database management System(RDBMS) is a database management
system(DBMS) based on the relational model can be represented as a table of rows
and columns which introduced by E.F Codd.
🞭 In relational model, data is stored in relations(tables) and is represented in form
of tuples(rows).
🞭 RDBMS is used to manage Relational database. Relational database is a collection
of organized set of tables related to each other, and from which data can be accessed
easily. Relational Database is the most commonly used database these days.
🞭 All modern database management systems like SQL, MS SQL Server, IBM DB2,
ORACLE, My-SQL and Microsoft Access are based on RDBMS
INTRODUCTION TO RDBMS
🞭 A relational database has following major components:
Database
🞭 1. Table
2. Record or Tuple
3. Field or Column name or Attribute
4. Domain
5. Instance
6. Schema
7. Keys
HOW IT WORKS
🞭 Data is represented in terms of tuples (rows) in RDBMS.
🞭 Relational database is most commonly used database. It contains number of tables
and each table has its own primary key.
🞭 Due to a collection of organized set of tables, data can be accessed easily ACCESS
in RDBMS.
DIFFERENCE BETWEEN FILE SYSTEM AND DBMS
File System DBMS
The data cannot be shared because data is In database data is easily shared because data is stored
distributed in different files. at one place.
File based system does not provide consistency Database system provides a different consistency
constrains. constrains to maintain data integrity in the system
It doesn’t provide backup and recovery of data if it It provides backup and recovery of data even if it is
is lost. lost.
CONTINUE…
There is no efficient query processing in file system. Efficient query processing is there in DBMS.
File systems provide less security in comparison to DBMS has more security mechanisms as compared to
DBMS. file system.
It is less expensive than DBMS. It has a comparatively higher cost than a file system.
If one application fail it does not affects other files in If database fail it affects all application that dependent
system. on database
DIFFERENCE BETWEEN FILE SYSTEM AND DBMS
DBMS RDBMS
Used for applications using small amount of data Used for complex and large amount of data
Does not Support Integrity Constraints Supports Integrity Constraints