Database Management
Database Management
Database System
Management
What is Database?
Data is a collection of a distinct small unit of information. It can be
used in a variety of forms like text, numbers, media, bytes, etc. it can
be stored in pieces of paper or electronic memory, etc.
Word 'Data' is originated from the word 'datum' that means 'single
piece of information.' It is plural of the word datum.
Data is information that can be translated into a form for efficient
movement and processing.
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.
A database is a systematic collection of data. They support electronic storage and manipulation of data. Databases
make data management easy.
Types of Databases
Cloud databases:
Distributed databases:
A cloud database is a database which is optimized or built for
A distributed database is a type of database that has
such a virtualized environment. There are so many advantages of
contributions from the common database and
a cloud database, some of which can pay for storage capacity and
information captured by local computers.
bandwidth.
OLTP databases:
OLTP another database type which able to perform fast
query processing and maintaining data integrity in
multi-access environments.
Personal database:
A personal database is used to store data stored on personal
computers that are smaller and easily manageable. The data is
mostly used by the same department of the company and is
accessed by a small group of people.
Multimodal database:
The multimodal database is a type of data processing
platform that supports multiple data models that define how
the certain knowledge and information in a database should
be organized and arranged.
Common Database Data Types
Integer – is a whole number that can have a positive, Array – contains a group of elements which can be of the
negative or zero value. It cannot be a fraction nor can have same data type like an integer or string. It is used to
decimal places. It is commonly used in programming organize data for easier sorting and searching of related
especially for increasing values. set of values.
Update Data – Provides access to the users to insert, modify and delete data from the database.
Retrieve Data – Allows the users to retrieve data from the database based on the requirements.
Administration of Users – Register the users and monitors their action, enforces data security, maintains data integrity.
GRANT DROP
The grant statement is used to grant SQL Select, Insert, The Drop table statement is used to drop an existing
Delete and other privileges on the tables or views. table in a database
REVOKE TRUNCATE
The revoke statement is used to remove the permission The Truncate table command deletes the data inside a
or privileges of a user on database objects set by the table, but not the table itself.
grant command,
CREATE
The Create table statement is used to create a new table
in a database.
ALTER
The Alter table statement is used to add, delete, or
modify columns in an existing table.
Types of SQL (Structured query language) Commands
DML – Data Manipulation Language TCL– Transaction Control Language
INSERT COMMIT
The Insert into statement is used to insert new record in The Commit statement is used to permanently
a table. save the changes done in the transaction in
tables or databases.
UPDATE
The Insert statement is used to modify the existing ROLLBACK
record in a table. The Rollback statement is used to undo the
transaction that have not been saved in the
database.
DELETE
The Delete statement is used to delete existing record in
a table.
SELECT
The Select statement is used to select data from a
database.