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

https://github.com/techysanoj/sql-course

Step-by-step SQL tutorials and practical examples covering queries, constraints, transactions, and more. Ideal for beginners, interview prep, and anyone looking to master SQL—from basics to advanced.
https://github.com/techysanoj/sql-course

beginner-friendly constraints joins learn-sql learn-sql-language learning-path mysql mysql-database mysql-server postgresql sql sql-course sql-examples sql-join sql-joins sql-queries sql-query sql-tutorial transactions

Last synced: 3 months ago
JSON representation

Step-by-step SQL tutorials and practical examples covering queries, constraints, transactions, and more. Ideal for beginners, interview prep, and anyone looking to master SQL—from basics to advanced.

Awesome Lists containing this project

README

          

# SQL Course – Commit-by-File Learning Path

Welcome to the **SQL-Course** repository!
This SQL learning resource is designed to be followed by examining each commit in the order it was made. Every commit adds a new concept, and you can refer to the associated `.sql` file for hands-on code and explanations.

Below you’ll find an example of the first 10 commits in the **exact order they were made**, with direct links to both the commit and the file(s) you should study for that topic.

---

##First 10 Commits with Relevant Files

| Order | Commit Message & Link | File(s) to Refer (Example) | Description/Topic |
|-------|------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------|
| 1 | [understanding ifNULL function in sql statement](https://github.com/techysanoj/SQL-Course/commit/b96b8d7db77e440b34d715cd73c83ef0e2a9e2d9) | [`ifNULL function.sql`](https://github.com/techysanoj/SQL-Course/blob/main/ifNULL%20function.sql) | Handling NULLs with `ifNULL` |
| 2 | [understanding AS keyword in sql statement](https://github.com/techysanoj/SQL-Course/commit/81e9cbd7bbc3a0796d9a5f9b1888cbdc63acc342) | [`as_keyword.sql`](https://github.com/techysanoj/SQL-Course/blob/main/as_keyword.sql) | Using the `AS` keyword for aliases |
| 3 | [understanding insert into statements](https://github.com/techysanoj/SQL-Course/commit/131b7cdc449a6b3d61d49975035071ba307d2b3c) | [`insert_into_statements.sql`](https://github.com/techysanoj/SQL-Course/blob/main/insert_into_statements.sql) | The `INSERT INTO` statement |
| 4 | [understanding auto_increment keyword](https://github.com/techysanoj/SQL-Course/commit/b9874047360d6c3c3c1dfa73da71dc1599021211) | [`auto_increment.sql`](https://github.com/techysanoj/SQL-Course/blob/main/auto_increment.sql) | The `AUTO_INCREMENT` feature |
| 5 | [understanding default integrity constraint](https://github.com/techysanoj/SQL-Course/commit/fa81a488c3cb949e9422045b408ff7e000124426) | [`default_integrity_constraint.sql`](https://github.com/techysanoj/SQL-Course/blob/main/default_integrity_constraint.sql) | Using `DEFAULT` integrity constraints |
| 6 | [understanding check integrity constrain](https://github.com/techysanoj/SQL-Course/commit/758b53ccef1a87e07bd567b2678d73f699c9e7ed) | [`check_integrity_constraint.sql`](https://github.com/techysanoj/SQL-Course/blob/main/check_integrity_constraint.sql) | Using `CHECK` constraints |
| 7 | [understanding foreign key integrity constraint](https://github.com/techysanoj/SQL-Course/commit/18abe68e620cc6ad981b81d20c77a04e482279cc) | [`foreign_key_integrity_constrain.sql`](https://github.com/techysanoj/SQL-Course/blob/main/foreign_key_integrity_constrain.sql) | `FOREIGN KEY` constraints |
| 8 | [understanding primary key integrity constraint](https://github.com/techysanoj/SQL-Course/commit/c251ecfd6a1d997b1b075d0afac52ea7ee4b5053) | [`primary_key_integrity_constraint.sql`](https://github.com/techysanoj/SQL-Course/blob/main/primary_key_integrity_constraint.sql) | The `PRIMARY KEY` constraint |
| 9 | [understanding unique integrity constraint](https://github.com/techysanoj/SQL-Course/commit/2d2023da997c332f83cf1268a7ebebf268cadb61) | [`unique_integrity_constrain.sql`](https://github.com/techysanoj/SQL-Course/blob/main/unique_integrity_constrain.sql) | The `UNIQUE` constraint |
| 10 | [understanding not null integrity constraint](https://github.com/techysanoj/SQL-Course/commit/9cefa6fffbd77ea0d90048b11b9d18c297e470aa) | [`not_null_integrity_constraint.sql`](https://github.com/techysanoj/SQL-Course/blob/main/not_null_integrity_constraint.sql) | The `NOT NULL` constraint |

> **Note:** This is only a sample of the first 10 commits.
> For the full and up-to-date commit history, visit: [Commits on GitHub](https://github.com/techysanoj/SQL-Course/commits/main?per_page=10&page=1)

---

## How to Learn from This Repo

1. **Follow the commits in order.** Start with the oldest commit to build your knowledge step-by-step.
2. **Open the linked file for each commit** to see the code, comments, and explanations for the topic.
3. **Run and modify** the SQL code in your local SQL environment or any SQL playground.
4. **Repeat** for every commit to cover all core SQL concepts, great for interviews, real-world usage, and mastering SQL.

---

## Why Use This Approach?

- Each concept is introduced clearly and progressively.
- You always know what file to refer to for hands-on practice.
- Keywords like `SQL constraints`, `SQL NULL`, `SQL INSERT`, `SQL AUTO_INCREMENT`, and more are covered in depth for both SEO and practical learning.
- Ideal for beginners, interview prep, or anyone looking to deepen their SQL expertise.

---

**Happy Learning!**
⭐ Star this repository and follow along commit-by-commit for the best results.