5 Types of Essential SQL Commands That Empower Your Data Analysis
Data Query Language
Data Control Language
Data Manipulation Language
Transaction Control Language
Data Definition Language
Data Definition Language
DDL commands create, modify, and delete database structures, but not data. Some DDL commands are: · CREATE · DROP · ALTER · TRUNCATE · RENAME
Data Query Language
There is only one DQL command, SELECT, and it is used to select data from a database based on the query passed to it.
Data Control Language
DCL commands are used to deal with rights, permissions, and other controls in the database system. DCL statements are grouped with DML statements (see the next page) to give, remove, or reset specific manipulation privileges. The primary DCL commands are: · GRANT · DENY · REVOKE
Data Manipulation Language
DML commands manipulate the data in a database. The major DML commands are: · INSERT · UPDATE · DELETE · SELECT
Transaction Control Language
Transactions combine several tasks into a single unit of execution. The major TCL commands are: · COMMIT · ROLLBACK · SAVEPOINT