Transact-SQL (T-SQL) is Microsoft’s extension of SQL (Structured Query Language).
It is mainly used in Microsoft SQL Server to define, manipulate, query, and control data in relational databases.
SQL commands are divided into the following categories:
- DDL (Data Definition Language) – Defines and manages database structure.
- DML (Data Manipulation Language) – Manages and manipulates data inside tables.
- DQL (Data Query Language) – Queries and retrieves data.
- TCL (Transaction Control Language) – Manages transactions and ensures data consistency.
- DDL (Data Definition Language)
- DML (Data Manipulation Language)
- DQL (Data Query Language)
- TCL (Transaction Control Language)
- DDL → Create, alter, drop, and truncate database objects.
- DML → Insert, update, delete, and merge data.
- DQL → Select and query data.
- TCL → Commit, rollback, and manage transactions.
Clone this repository and open each .md file for detailed explanations with SQL code examples.
git clone https://github.com/your-username/tsql-guide.git
cd tsql-guide