Beruflich Dokumente
Kultur Dokumente
Why we using software like SQL not store the data in text file?
Because of these reasons
1-data integrity
2- over data
3-outdated data
4-retriving, filtering, searching
5-protect data from unauthorized
What is a SQL?
Structure Query Language (SQL) is an application that allows you to
create and manage database
RDBMS
RDBMS stands for Relational Database Management System.
RDBMS is the basis for SQL, and for all modern database systems like MS
SQL Server, IBM DB2, Oracle, MySQL, and Microsoft Access.
this system makes managing data easy by taking care of many of the
most difficult tasks , and save effort and duplicate the data more than
once
the data integrity is the main job of the RDBMS
The data in RDBMS is stored in database objects called tables.
A table is a collections of related data entries and it consists of columns
and rows.
DDL
Define the data object
CREATE object name
To create a new object like new database , new table,…..
ALTER object name
To make any update in an existing object
DROP object name
To delete any existing object like database, table, …….
DML
TO deal with the data inside these object
SELECT
To retrieve existing data and can filter this data in retrieving
INSERT
To insert new data in table
UPDATE
To update information in existing data
DELETE
To delete any data
DCL
SET or change permissions
1-GRANT
Allow user to work with data
2-DENY
Prevent the user from inheriting the permission through its group
3-REVOKE
Remove granted or denied permission