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.
- Host: GitHub
- URL: https://github.com/mdalamin5/play-with-sql-from-scratch
- Owner: MDalamin5
- License: apache-2.0
- Created: 2025-07-28T05:19:50.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-08-09T14:03:30.000Z (5 months ago)
- Last Synced: 2025-08-09T16:08:19.591Z (5 months ago)
- Topics: mysql-database, postgresql, sql, sqlalchemy-python
- Language: Jupyter Notebook
- Homepage: https://www.linkedin.com/in/mdalamin5/
- Size: 2.14 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
---