
Shittu Olumide
· 1 min read
10 GitHub Repositories to Master SQL for Data Science
Most people learn SQL in the same order. First SELECT and WHERE, then JOIN and GROUP BY. After that, progress tends to stall, because the next step is not another keyword. It is knowing how to rank rows without a messy self-join, why a query that ran in two seconds last month now takes two minutes, and how to turn a folder of one-off queries into something your team can trust.
A lot of the best material for that next step is free on GitHub, and it is kept current by people who use SQL every day. The doocs/leetcode repository has worked solutions to 309 SQL interview problems. The free Data Engineering Zoomcamp has passed 46,000 stars teaching SQL on BigQuery, DuckDB and dbt.
This article covers 10 GitHub repositories to master SQL for data science, arranged as a learning path. You start with SQL interview questions and realistic practice data, move into advanced SQL patterns like window functions, learn SQL performance tuning, and finish with the tools analytics teams use in production.
Here is the full list of the repositories covered in this article:
| # | Repository | Stars | Last commit | What it teaches |
|---|---|---|---|---|
| 1 | doocs/leetcode | 36.8k | Nov 2026 | SQL interview problems with solutions |
| 2 | DataExpert-io/data-engineer-handbook | 45.0k | Aug 2026 | Roadmap, bootcamps and interview advice |
| 3 | datacharmer/test_db | 4.5k | Apr 2026 | Realistic data to practice on |
| 4 | duckdb/duckdb | 42.8k | Nov 2026 | Advanced analytical SQL on a laptop |
| 5 | dalibo/pev2 | 3.6k | Nov 2026 | Reading query plans |
| 6 | ankane/pghero | 8.9k | Oct 2026 | Finding slow queries |
| 7 | sqlfluff/sqlfluff | 10.0k | Nov 2026 | Clean, consistent SQL |
| 8 | tobymao/sqlglot | 9.8k | Nov 2026 | Moving between SQL dialects |
| 9 | dbt-labs/dbt | 14.1k | Nov 2026 | Production analytics with SQL |
| 10 | DataTalksClub/data-engineering-zoomcamp | 46.6k | Sep 2026 | A full end-to-end project |
1. doocs/leetcode
2. DataExpert-io/data-engineer-handbook
3. datacharmer/test_db
4. duckdb/duckdb
5. dalibo/pev2
6. ankane/pghero
7. sqlfluff/sqlfluff
Run two commands against it:
Original source
This story was published by KDnuggets and written by Shittu Olumide. SyncAI.news shows a preview; the complete article is on the publisher's site.
Read the full story on kdnuggets.com


