T-SQL Reference Library - AdventureWorks Edition
About the project
![]()
This repository contains a curated collection of Transact-SQL (T-SQL) scripts designed for learning, reference, and practice using the AdventureWorks sample database.
Each script demonstrates key SQL Server concepts and operations, from basic querying and joins to more advanced topics like window functions, stored procedures, and common table expressions (CTEs).
Link to the project files: github.com/Al-1n/T-SQL
Requirements
| Microsoft SQL Server (T-SQL) |
|---|
| AdventureWorks Database |
| Visual Studio Code |
How to use this project
- Clone the repository
- Connect VS Code to your SQL Server instance
- Open and execute any
.sqlfile against the AdventureWorks database
Contributors
Features
- Organized T-SQL examples by topic (reading data, inserting data, updating data, transactions, stored procedures, etc.)
- Compatible with SQL Server and VS Code SQL extensions
- Tested against the AdventureWorks database
- Ideal for reference, learning, or interview preparation

Sample Workspace