An open API service indexing awesome lists of open source software.

https://github.com/mdalamin5/play-with-sql-from-scratch

A complete hands-on SQL practice repo based on CampusX's DBMS & SQL course. Covers DDL, DML, Grouping, Joins, Subqueries, and Window Functions using MySQL. Ideal for beginners to strengthen their database skills with real-world datasets and structured folder-wise queries.
https://github.com/mdalamin5/play-with-sql-from-scratch

mysql-database postgresql sql sqlalchemy-python

Last synced: 4 months ago
JSON representation

A complete hands-on SQL practice repo based on CampusX's DBMS & SQL course. Covers DDL, DML, Grouping, Joins, Subqueries, and Window Functions using MySQL. Ideal for beginners to strengthen their database skills with real-world datasets and structured folder-wise queries.

Awesome Lists containing this project

README

          

# SQL Mastery with CampusX

A comprehensive repository of SQL practice files based on the **CampusX - Database and SQL Full Course (DSMP 2023)** playlist. This project is a hands-on journey through the core concepts of Database Management Systems (DBMS) and SQL, ranging from DDL/DML queries to complex subqueries and window functions.

> ๐Ÿ“Œ Playlist followed: [CampusX - Basic DBMS and SQL Full](https://www.youtube.com/playlist?list=PLKnIA16_RmvbY-7TjHytIcGk3xE4Ykv2s)
> ๐Ÿง  Taught by: **CampusX**
> ๐Ÿ“… Duration: 7 Sessions (15+ Hours)

## ๐Ÿ“ Repository Structure

```
SQL-Mastery-CampusX/
โ”œโ”€โ”€ 01-SQL-DDL-Query/ # Practice on CREATE, ALTER, DROP
โ”œโ”€โ”€ 02-SQL-DML-Query/ # Practice on INSERT, UPDATE, DELETE
โ”œโ”€โ”€ 03-SQL-GROUPING/ # GROUP BY, HAVING, aggregation queries
โ”œโ”€โ”€ 04-SQL-JOINs/ # INNER, LEFT, RIGHT, FULL JOINs
โ”œโ”€โ”€ 05-SQL-SUBqUERY/ # Scalar, correlated & independent subqueries
โ”œโ”€โ”€ 06-SQL-WINDOW-FUNC/ # (Coming soon) RANK, DENSE_RANK, NTILE, etc.
โ”œโ”€โ”€ Data/ # Raw data used in exercises (e.g., IPL dataset)
โ”œโ”€โ”€ sql-query-execution-order.excalidraw.png # Visual aid
โ”œโ”€โ”€ .vscode/ # VS Code settings
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ README.md
```

## ๐Ÿงช What's Covered?

| Module | Topics |
|---------------------------|---------------------------------------------------------------------|
| Session 30 - Fundamentals | DBMS basics, normalization, ERD, relational algebra |
| Session 31 - DDL | CREATE, ALTER, DROP, constraints |
| Session 32 - DML | INSERT, UPDATE, DELETE, query structure |
| Session 33 - Grouping | GROUP BY, HAVING, ORDER BY, aggregate functions |
| Session 34 - Joins | INNER, LEFT, RIGHT, FULL, SELF JOINS |
| Session 35 - Subqueries | Scalar, correlated, nested subqueries |
| Session 36 - Window Funcs | ROW_NUMBER, RANK, DENSE_RANK, NTILE, LEAD, LAG (coming soon) |

## ๐Ÿ”ง Tech Stack

- MySQL 8+
- VS Code
- SQL Tools (vs code extension)
- Git & GitHub

## ๐Ÿ“Œ How to Use This Repo

1. Clone the repository:
```bash
git clone https://github.com/MDalamin5/play-with-sql-from-scratch
```
2. Open in your preferred SQL environment (MySQL CLI or GUI like DBeaver).
3. Execute scripts folder-wise to practice each concept.
4. Modify or experiment with queries to strengthen your understanding.

## ๐Ÿง‘โ€๐Ÿ’ป Author

**Md Al Amin**
Generative AI Developer | Building agents that remember & reason with LangChain, LangGraph & RAG. | Open to AI/ML Engineer roles.

[GitHub @MDalamin5](https://github.com/MDalamin5)

## ๐Ÿ“ License

This project is licensed under the Apache-2.0 license.

---