Menu

SQL Commands Explained: Complete Fast Revision Notes for IBPS SO IT Officer 2026

MockSensei Team
July 10, 2026
4 min read
DBMS & SQL
SQL Commands Explained: Complete Fast Revision Notes for IBPS SO IT Officer 2026

SQL Commands Explained: Fast Revision Notes for IBPS SO IT Officer

SQL (Structured Query Language) is the standard language used to interact with relational databases. Almost every competitive exam covering DBMS asks questions on SQL command categories, their purpose, and common differences.

This article provides a quick revision of all five SQL command categories with syntax, examples, and exam-focused tips.

This is a Fast Revision guide. If you're preparing one or two days before the exam, focus on the revision tables, examples, and comparison sections.

Why Should You Learn SQL Commands?

SQL commands allow you to:

  • Create databases and tables
  • Insert and modify records
  • Retrieve information
  • Manage transactions
  • Control user permissions

Questions on SQL command categories are among the easiest marks in the IBPS SO Professional Knowledge section.

SQL Commands at a Glance

CategoryFull FormPurpose
DDLData Definition LanguageDefines database objects
DMLData Manipulation LanguageInserts, updates, and deletes data
DQLData Query LanguageRetrieves data
DCLData Control LanguageManages user permissions
TCLTransaction Control LanguageManages transactions
Classification of SQL Commands
SQL commands are classified into DDL, DML, DQL, DCL, and TCL.

1. DDL (Data Definition Language)

DDL commands define or modify the structure of database objects.

Common Commands

CommandPurpose
CREATECreates a database or table
ALTERModifies an existing table
DROPDeletes a database object
TRUNCATERemoves all rows while keeping the table
RENAMERenames a database object

Example

CREATE TABLE Student (
    StudentID INT PRIMARY KEY,
    Name VARCHAR(50)
);

Important Points

  • Changes the database structure.
  • Usually performs an implicit COMMIT.
  • Cannot usually be rolled back.

2. DML (Data Manipulation Language)

DML commands manipulate the records stored inside tables.

Common Commands

CommandPurpose
INSERTAdds new records
UPDATEModifies existing records
DELETERemoves selected records

Example

INSERT INTO Student
VALUES (101, 'Rahul');
UPDATE Student
SET Name = 'Aman'
WHERE StudentID = 101;
DELETE FROM Student
WHERE StudentID = 101;

3. DQL (Data Query Language)

DQL retrieves data from one or more tables.

Main Command

CommandPurpose
SELECTRetrieves records

Example

SELECT Name, Department
FROM Student
WHERE Department = 'IT';

Frequently used clauses include:

  • WHERE
  • ORDER BY
  • GROUP BY
  • HAVING
  • DISTINCT
  • LIMIT

4. DCL (Data Control Language)

DCL controls database access and permissions.

Commands

CommandPurpose
GRANTGives permissions
REVOKERemoves permissions

Example

GRANT SELECT
ON Student
TO user1;

5. TCL (Transaction Control Language)

TCL manages database transactions.

Commands

CommandPurpose
COMMITSaves changes permanently
ROLLBACKUndoes changes
SAVEPOINTCreates a rollback point

Example

UPDATE Account
SET Balance = Balance - 1000
WHERE AccountID = 101;

ROLLBACK;

SQL Command Classification Cheat Sheet

CategoryCommands
DDLCREATE, ALTER, DROP, TRUNCATE, RENAME
DMLINSERT, UPDATE, DELETE
DQLSELECT
DCLGRANT, REVOKE
TCLCOMMIT, ROLLBACK, SAVEPOINT

DELETE vs TRUNCATE vs DROP

FeatureDELETETRUNCATEDROP
Removes Data
Removes Table
WHERE Clause
Rollback PossibleUsually YesUsually NoNo
Command TypeDMLDDLDDL

A favourite exam question is identifying the correct category of TRUNCATE. Remember: TRUNCATE is a DDL command, not DML.

Memory Trick

Remember the order:

DDL → DML → DQL → DCL → TCL

A simple mnemonic is:

"Define → Modify → Query → Control → Transaction"

Exam Tips

  • Know the classification of every SQL command.
  • Remember that SELECT belongs to DQL.
  • Learn the difference between DELETE, TRUNCATE, and DROP.
  • Revise transaction commands before studying ACID properties.
  • SQL Constraints
  • SQL Keys
  • SQL Joins
  • Aggregate Functions
  • Transactions
  • ACID Properties

Take this free mock test to test your understanding of the SQL commands and get mastery over them.

Topic Test

Test Your DBMS Fundamentals

Attempt a topic-wise mock test covering SQL commands, keys, constraints, and relational databases.

Start DBMS PracticeFree • No signup required

Frequently Asked Questions (FAQs)

SQL commands are commonly classified into five categories: DDL, DML, DQL, DCL, and TCL.

Ready to Practice?

Don't just read about it. Create a custom mock test for this topic instantly.