Professional Documents
Culture Documents
Chapter 1database Management System (DBMS) Part-2
Chapter 1database Management System (DBMS) Part-2
Chapter 1database Management System (DBMS) Part-2
Data Redundancy: Redundancy means duplicate Accessing data: DBMS provides SQL
of same data or data DBMS helps to reduce the interface to flexibly retrieve the data based
data redundancy by addressing the records into
unique identities. on given criteria.
Data inconsistency: In flat file system data values Integrity : DBMS assures compatibility and
may face minor or major changes while using the integrity of data.
values resulting in inconsistent values. DBMS
helps to reduce such inconsistencies. Ensure Atomicity :Ensuring that the
Data Isolation: Isolation of data from the record requirement of recording of data is atomic
format is achieved in DBMS. In traditional file and does not require more than one record
system the data my be recorded using comas, to describe a transaction.
semi columns, tab spaces etc.
1
8/30/2022
Set of database language to perform different Data definition language – deals with the definition of
the structure of the data base
activities on the database Defines and maintains the database schema
Categorized as follows: CREATE – is used to create the database or its objects
(like table, index, function, views, store procedure and
◦ DDL – Data Definition Language triggers).
◦ DQl – Data Query Language DROP – is used to delete objects from the database.
◦ DML – Data Manipulation Language ALTER-is used to alter the structure of the database.
◦ DCL – Data Control Language TRUNCATE–is used to remove all records from a table,
including all spaces allocated for the records are
removed.
DDL and DML are our major goals COMMENT –is used to add comments to the data
dictionary.
RENAME –is used to rename an object existing in the
database.
2
8/30/2022
Data manipulation language to manipulate There are are many advantages of database
data in the database schema. such as reducing redundancy, sharing data,
Perform tasks on the data of the database consistency, security etc
tables. DBMS uses sql queries to perform different
SELECT – is used to retrieve data from the activities in the database.
database.
DML refers to Data manipulation Language
INSERT – is used to insert data into a table.
for retrieving, updating and deleting data.
UPDATE – is used to update existing data
within a table. DDL refers to Data definition language for
DELETE – is used to delete records from a management of database schema forexample
database table. creating, deleting, renaming, alter fields etc.