Skip to content

GabrielSCamba/SQL_LearningPath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL Learning Path 📊

This repository is a structured learning path that covers the main SQL concepts, organized into modules.
It is designed as my study guide created by me with the help of Chatgpt to make the exercises and evaluete my solutions. It contains explanations, examples, and exercises to build a strong foundation in SQL — from basics to advanced topics.


📂 Project Structure

🔹 Database

The database used in most of the exercises. Northwind database was chosen for this project.

🔹 DDL (Data Definition Language)

Focus on defining and modifying database structures.

  • CREATE TABLE, ALTER TABLE, DROP TABLE
  • Data types (numeric, text, date, binary).

🔹 DML (Data Manipulation Language)

Covers how to insert, update, and delete data.

  • INSERT, UPDATE, DELETE
  • Practical exercises for data manipulation.

🔹 DQL (Data Query Language)

Learn how to query and retrieve data.

  • SELECT, WHERE, ORDER BY, GROUP BY, HAVING.
  • Aggregation functions and filtering.

🔹 DTL (Data Transaction Language)

Work with transactions and ensure data consistency.

  • BEGIN TRANSACTION, COMMIT, ROLLBACK.
  • ACID properties in SQL.

🔹 CTE (Common Table Expressions)

Explore temporary result sets that simplify queries.

  • Recursive and non-recursive CTEs.
  • Practical use cases for improving readability.

🔹 Subquery

Learn how to nest queries inside others.

  • Scalar, correlated, and multi-row subqueries.
  • When to use subqueries vs. joins.

🔹 Window Function

Advanced querying with ranking and analytical functions.

  • ROW_NUMBER, RANK, DENSE_RANK.
  • LAG, LEAD, NTILE, and aggregates with OVER().

🔹 Storage Procedure

Introduction to stored procedures for reusability and modularization.

  • Input and output parameters.
  • Real examples with business logic.

🔹 Optimization

Best practices for improving SQL performance.

  • Indexes (clustered vs. non-clustered).
  • Query tuning strategies.

🎯 Goals

  • Build a solid SQL foundation.
  • Practice with realistic queries and scenarios.
  • Learn step by step from fundamentals to advanced topics.
  • Share what I learned with the community.

🧑‍💻 Author

Created by Gabriel Camba as part of a SQL learning journey for mastering database concepts and preparing for data engineering challenges.

About

Repository with SQL theory and exercises for learning and practice.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages