DBMSBASICINTRDUCTION
DBMSBASICINTRDUCTION
Systems
Module-1:
INTRODUCTION TO DBMS
Syllabus
All the operations like insert, delete, update, search, etc. by SQL queries. It is a
flexible and easy way. For this user required information of column name and
appropriate value. Queries make it more powerful.
Every view contains only the data of interest to a user or a group of users.
Characteristics of database approach
4. Data for Specific Purpose
A database is designed for a specific purpose according to the group of user and application
interests.
For example, a database of the student management systems is designed to maintain the record of
students’ marks, fees, and attendance, etc. This data has the specific purpose of maintaining student
records.
For example, the library system has three types of users, 1. official administration of the college, 2.
librarian, and 3. students.
A database represents real-world applications. If any change in the real world then it is reflected in
the database. Example: - railway reservation system - Maintaining records of passengers, waiting list, train
arrival and departure time, certain day, etc. related to each train.
A database maintains a logical relationship between records and data. So a user can access various
records according to various logical conditions by a single query from the database.
Characteristics of database approach
7. Insulation Between Program and Data
In the database approach, the data structure is stored in the system catalog, not in
the programs. If we want to change the structure of a file then no need to change the
program. This feature is called program-data independence.
This information is used by the DBMS software or database users if needed. This type of
nature is not found in file-based systems.
Current database systems can be accessed by multiple users at the same time. This feature is
called concurrency control strategies. These strategies ensure that the data accessed are
always correct and integrated.
Characteristics of database approach
10. Control of data redundancy
In the database approach, each data item is stored in only one place in the database. So single data
does not repeat more than one time. This feature improves system performance.
Redundancy is controlled by application programming and minimized when designing the database.
Database approach provides the ability to define and enforce certain constraints to ensure that
users enter valid information and maintain data integrity.
A database constraint is a restriction or rule that dictates what can be entered or edited in a table
such as a postal code using a certain format or adding a valid city in the City field.
A database approach should provide security to create and control different types of user accounts
and restrict unauthorized access.
It provides privileges to access or use data from a database these are read-only access (i.e., the
ability to read a file but not make changes), and read and write privileges, (both read and modify a
file).
Characteristics of database approach
13. Transaction processing
A database approach supports a concurrency control subsystem that ensures that data
remains consistent and valid during transaction processing even if several users update the
same information.
Backup and recovery are methods that are used to protect your data from loss. Backup
means storing database copy to another drive or place. If a hard drive fails or is not
accessible then it recovers the database from backup places.
If a computer system fails in a complex update process, the recovery method is accessed
and restored to its original state.
File System Vs Database System
File system helps to store a collection of raw data files into the hard disk, where as
DBMS helps to easily store, retrieve and manipulate data in a database.
In traditional file processing each user defines and implements the files needed
for a specific software application as part of programming the application. Where
as in DBMS data is not stored or created redundantly.
Tasks such as storing, retrieving and searching are done manually in a file system
Therefore, it is difficult to manage data using a file system On the other hand,
operations such as updating, searching, selecting data is easier in DBMS because
it allows using SQL querying.
File system has data inconsistency whereas DBMS provides higher data
consistency using normalization.
File System Vs Database System
There is more redundant data in a file system whereas there is low data redundancy in a DBMS
DBMS provides more security to the data than the file system
Backup and recovery process is not efficient in file system because it is not possible to recover
the lost data On the contrary, a DBMS has a sophisticated backup and recovery
File system is appropriate to handle data of a small scale organization or individual users On
the other hand, DBMS is suitable for medium to large organizations or multiple users.
Examples:
NTFS( Windows ) and Ext( Linux ) are some examples of file systems.
Software
Hardware
to store
data
Data
User-defined Data:
It is the data for whose storage the database is created.
Example : Student data
Railway reservation data
Meta-Data:
The database definition or descriptive information stored in the DBMS
catalog, which contains information such as the structure of each file, the
type and storage format of each data item, and various constraints on the
data.
Describes the primary structure of the database.
Software
DBMS: – This is the software that helps the user to interact with the
database. It allows the users to insert, delete, update, or retrieve the
data. All these operations are handled by query languages like MySQL,
Oracle, etc.
The relational model represents data and the relationships among data by a
collection of tables, which has a number of columns with unique names.
Example of record based model
Legacy Data Model
The term legacy database commonly refers to a database that has been in
use for many years and is therefore unsuitable for modern apps and
environments.
Examples include databases based on flat files and those that reside on old
servers.
But just because a database is legacy does not mean it is obsolete. There
are many applications that use it and need it to be operational.
This is difficult to do for one or more of the following reasons:
The data model is not properly documented with diagrams or data dictionaries.
Any changes to its structure represent a great risk for the applications that use it.
Provide concepts that are close to the way many users perceive data.
They use concepts such as entities, attributes, relationships.
1. OBJECT-ORIENTED MODEL
Each record is treated as an object
a. ER-Model:
Based on perception of a real world that consists of a collection of basic
objects called entities and of relationships among these objects.
ER-Model
Levels of Data abstractions in DBMS
Physical level
The three-schema architecture is a convenient tool with which the user can
visualize the schema levels in the database system
Data Independence