SQL is commonly divided into four main subdivisions, each serving a specific purpose in managing and interacting with relational databases:

  1. Data Definition Language (DDL):

  2. Data Manipulation Language (DML):

    image.png

  3. Data Control Language (DCL):

  4. Data Query Language (DQL):

  5. Transaction Control Language (TCL): note: 5th component DTL/TCL not an ANSI standard. It is extra in MySQL and Oracle RDBMS.

These subdivisions collectively provide the framework for defining database structures, managing data, securing access, and controlling transactions within SQL-based systems.


Rules for table names:


Data types