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.
What is (DBMS) Database Management System?
Database management system (DBMS) is software that is used to manage
the database.
DBMS provides an interface to perform various operations like database
create, storing data in it, updating data, create a table in the database and a
lot more
A database management system (or DBMS) is
essentially nothing more than a computerized data-
keeping system. Users of the system are given
facilities to perform several kinds of operations on
such a system for either manipulation of the data in
the database or the management of the database
structure itself.
Database Management Systems (DBMS) are software systems used to store,
retrieve, and run queries on data. A DBMS serves as an interface between an
end-user and a database, allowing users to create, read, update, and delete
data in the database.
Database management systems are important because they provides
programmers, database administrators and end users with a centralized
view of data and free applications and end users from having to understand
where data is physically located.
Types of Databases
Distributed databases: Cloud databases:
A distributed database is a type of database that has A cloud database is a database which is optimized or built for
contributions from the common database and information such a virtualized environment. There are so many advantages of
captured by local computers. a cloud database, some of which can pay for storage capacity and
bandwidth.
Centralized database: Data warehouses:
It is a centralized location, and users from different Data Warehouse is to facilitate a single version of truth for a
backgrounds can access this data. This type of company for decision making and forecasting. A Data
computers databases store application procedures that warehouse is an information system that contains historical
help users access the data even from a remote location. and commutative data from single or multiple sources.
NoSQL databases:
NoSQL database is used for large sets of distributed data.
There are a few big data performance problems that are
effectively handled by relational databases.
Graph databases:
A graph-oriented database uses graph theory to store,
map, and query relationships. These kinds of computers
databases are mostly used for analyzing interconnections.
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, Varchar – as the name implies is variable character as the
negative or zero value. It cannot be a fraction nor can have memory storage has variable length.
decimal places. It is commonly used in programming
especially for increasing values.
Boolean – is used for creating true or false statements. To
Character – refers to any number, letter, space or symbol that compare values the following operators are being used:
can be entered in a computer. Each character occupies one AND, OR, XOR, and NOT.
byte of space.
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.