Data refreshed 5 October 2026, 22:59 UTC
Top 100 SQL repositories on GitHub, ranked by stars
SQL is the smallest list here — GitHub only reports a few thousand repositories whose primary language is SQL — and the entry bar is correspondingly low.
GitHub reports 4,580 repositories whose detected primary language is SQL. The 100 most-starred of them are listed below, ranked by stargazers_count. ben-nour/SQL-tips-and-tricks leads with 2,310 stars, and the bar for 100th place is 7 stars. The median repository in this top 100 has 14 stars, and the most common licence is NOASSERTION (54 of 100 repositories).
- 100 repositories ranked
- 2,310 stars for #1
- 7 stars to enter the top 100
- 14 median stars in the top 100
- 4,580 repositories GitHub reports
- 588.1 KB JSONL file
The 100 most-starred SQL repositories
| # | Repository | ★ Stars | Forks | Open issues | Licence | Last push | Description |
|---|---|---|---|---|---|---|---|
| 1 | ben-nour/SQL-tips-and-tricks | 2,310 | 108 | 2 | MIT | SQL tips and tricks | |
| 2 | cahyadsn/wilayah | 1,318 | 433 | 1 | MIT | Kode dan Data Wilayah Administrasi & Pulau Indonesia sesuai Kepmendagri No 300.2.2-2430 Tahun 2025 dengan PHP+MySQL+AJaX. Demo link : http… | |
| 3 | Thomas-George-T/HackerRank-SQL-Challenges-Solutions | 819 | 240 | 6 | MIT | The solutions of all SQL hackerrank challenges using MySQL environment | |
| 4 | brunocampos01/banco-de-dados | 423 | 62 | 0 | MIT | Aulas, exercícios e resumos sobre banco de dados | |
| 5 | basedosdados/sdk | 423 | 90 | 34 | MIT | ⚙️ Código de manutenção do datalake (metadados e pacotes de acesso) | 📖 Docs: https://basedosdados.org/docs/home | |
| 6 | Velir/dbt-ga4 | 402 | 167 | 60 | MIT | dbt Package for modeling raw data exported by Google Analytics 4. BigQuery support, only. | |
| 7 | tony-landis/agilebill | 310 | 168 | 6 | NOASSERTION | Open source billing and invoicing | |
| 8 | ClickHouse/NoiSQL | 294 | 4 | 1 | Apache-2.0 | NoiSQL — Generating Music With SQL Queries | |
| 9 | faizanxmulla/sql-portfolio | 285 | 54 | 1 | MIT | Repository of SQL projects, case studies, platform solutions, and learning resources to enhance SQL skills through practical applications.… | |
| 10 | dhaval1406/SQL | 229 | 82 | 3 | — | sql related stuff, interview questions, mySQL complex queries | |
| 11 | Snowflake-Labs/dbt_constraints | 178 | 44 | 8 | Apache-2.0 | This package generates database constraints based on the tests in a dbt project | |
| 12 | tnightengale/dbt-meta-testing | 132 | 19 | 11 | GPL-3.0 | A dbt SQL package for ensuring documentation and test coverage, with granular control. | |
| 13 | leehach/census-postgres | 121 | 70 | 0 | — | PostgreSQL schema and import scripts for recent US Census data | |
| 14 | cahyadsn/daerah | 117 | 105 | 2 | — | menampilkan data provinsi,kota/kabupaten,kecamatan dan desa/kelurahan menggunakan AjAX. (update terbaru sesuai Kepmendagri no 100.1.1-6117… | |
| 15 | SparkhoundSQL/sql-server-toolbox | 117 | 47 | 0 | — | SQL Server Toolbox by the Sparkhound SQL Team | |
| 16 | ssahibsingh/Social-Media-Database-Project | 112 | 36 | 1 | MIT | 📊 This project is part of Lab Evaluation of Course Fundamentals of Database Management Systems Lab. | |
| 17 | ndleah/8-Week-SQL-Challenge | 88 | 45 | 0 | — | #8WeekSQLChallenge by Danny Ma. | |
| 18 | avishek-choudhary/Music-Store-Analysis | 80 | 30 | 2 | — | This repository contains a SQL dataset of a music store and SQL queries to answer questions about the data. The results of the SQL queries… | |
| 19 | mgramin/malewicz | 70 | 1 | 9 | MIT | Suprematistic hackable GUI SQL-manager written in SQL itself | |
| 20 | sunnotes/Ali-Data-Mining | 63 | 32 | 0 | — | 阿里巴巴大数据竞赛 | |
| 21 | cahyadsn/wilayah_boundaries | 61 | 29 | 1 | MIT | Data boundaries wilayah administrasi pemerintahan Indonesia sesuai Kepmendagri No 300.2.2-2430 Tahun 2025 | |
| 22 | TrinityCore/TDB_4.3.4_NLU | 59 | 111 | 0 | — | If you are looking for TDB for 4.3.4 go to: | |
| 23 | mattDevigili/dms-smm695 | 51 | 40 | 0 | — | Teaching material for a B-school, post-grad module on Data Management Systems | |
| 24 | maf345/sql-hands-on | 50 | 23 | 0 | — | This repository contains SQL queries from various popular online learning resources e.g. Vertabelo Academy, SQLZoo etc. | |
| 25 | SomiaNasir/Google-Data-Analytics-Capstone-Cyclistic-Case-Study | 45 | 17 | 2 | — | ||
| 26 | tnightengale/dbt-activity-schema | 44 | 9 | 13 | GPL-3.0 | A dbt-Core package for generating models from an activity stream. | |
| 27 | Victor-Kipruto-Rop/SQL-for-Data-Engineering | 42 | 0 | 0 | — | ||
| 28 | cahyadsn/wilayah_kodepos | 42 | 12 | 0 | MIT | Kodepos berdasarkan kode wilayah Indonesia Kepmendagri No 300.2.2-3128 Tahun 2025 | |
| 29 | biljana-zobenica/SQL-complete-tutorial | 41 | 10 | 0 | — | This is a comprehensive SQL tutorial by Mosh Hamedani that covers both fundamentals and advanced topics. Additionally, Intuitive SQL for An… | |
| 30 | ACEmulator/ACE-World-16PY-Patches | 38 | 71 | 1 | AGPL-3.0 | World Database Releases for ACEmulator. This repo uses ACE-World-16PY as the base and combines it with patches to create the complete World. | |
| 31 | cahyadsn/db_rajaongkir | 32 | 33 | 0 | MIT | Data Kode Provinsi, Kota/Kabupaten dan Kecamatan untuk RajaOngkir | |
| 32 | ritakalach/sqlzoo-solutions | 30 | 9 | 1 | — | SQL practice problems and solutions. | |
| 33 | fab-geocommuns/RNB | 29 | 6 | 7 | Apache-2.0 | Construire le Référentiel National des Bâtiments (RNB) en France | |
| 34 | shivamgarg444/Cyclistic-Case-Study | 24 | 3 | 0 | — | Case study under capstone project of Google Data Analytics Certificate | |
| 35 | nataliapaulino/byte-by-byte | 21 | 1 | 0 | — | SQL, C#, and programming exercises for learning and practice. | |
| 36 | Alexsandro-01/mysql | 20 | 2 | 0 | — | ||
| 37 | ndleah/people-data-analysis | 19 | 9 | 0 | — | 👥 Employee analysis #DWD | |
| 38 | FL-Marine/8-Week-SQL-Challenge | 19 | 7 | 0 | — | Case Study's from Danny Ma's Serious SQL Course | |
| 39 | ndleah/northwind | 19 | 5 | 0 | — | 💼 SQL, company data analysis | |
| 40 | folio-org/folio-analytics | 18 | 36 | 59 | Apache-2.0 | Community query repository for FOLIO analytics based on Metadb/LDP | |
| 41 | Oyebamiji-Micheal/100-Days-of-SQL-Beginner-to-Advance | 18 | 8 | 0 | — | MySQL and Oracle in 100 days | |
| 42 | longwall/voynich_manchu_oradb | 17 | 2 | 0 | MIT | A research of Manchu hypothesis of Voynich manuscript. It's an Oracle database with tabes, DML scripts, PLSQL functions and queries. | |
| 43 | dwijendra626/DataAnalysis_and_Visualization_Projects | 17 | 1 | 0 | — | This repository contains End-to-end Data Analytics Projects | |
| 44 | jhajagos/DocGraph | 17 | 10 | 0 | — | Code related to DocGraph analysis | |
| 45 | pietdaniel/poetification | 17 | 3 | 0 | — | give texts give poems | |
| 46 | DFE-Digital/gias-query-tool | 17 | 4 | 1 | — | The easiest way to write advanced queries against the Get Information About Schools (GIAS) database | |
| 47 | ndleah/health-analysis | 16 | 11 | 0 | — | This case study is contained within the Serious SQL course by Danny Ma | |
| 48 | mennamamdouh/Analysis-of-Video-Games | 15 | 2 | 0 | — | This repository is for a data analytics project using SQL. The project is about analyzing and getting insights about video games sales, and… | |
| 49 | kolorobot/quartz-jee-demo | 15 | 15 | 0 | — | Quartz with Clustering JEE demo application | |
| 50 | bharathguntreddi3/Oracle_DB_SSMS_Development | 14 | 0 | 0 | — | This repo Contains Basic commands and Queries and intro to SQL and Oracle and PLSQL and TOAD ! | |
| 51 | Flowminder/COVID-19 | 14 | 7 | 5 | MPL-2.0 | Data insights for COVID-19 response: resources for producing mobility indicators and analysis from CDR data | |
| 52 | ITurres/vet-clinic-db | 14 | 0 | 0 | MIT | 🐘PostgreSQL🐘 | The objective of this project is to cultivate a comprehensive understanding of relational databases and key tools including… | |
| 53 | thatjpcsguy/shorts | 14 | 6 | 0 | — | Can i wear shorts today? http://shorts.today | |
| 54 | andrewmunro/Vanilla | 14 | 5 | 1 | — | Vanilla WoW Emulator for Educational Purposes | |
| 55 | vipul-shinde/people-analytics-cs | 13 | 4 | 0 | MIT | People Analytics Case Study - Serious SQL 🎃 | |
| 56 | gdsotirov/hr_schema | 13 | 0 | 0 | GPL-2.0 | An example HR database for management of company's organization, employees, etc. | |
| 57 | nextail/pulpocon-data-pipelines | 13 | 8 | 2 | — | Repositorio para el taller "Construyendo pipelines de datos a escala" de la PulpoCon 2022 | |
| 58 | nvmaxim/india-atd-postgis-database | 13 | 1 | 0 | — | PostGIS database for India's Administrative-Territorial Division (ATD). ETL pipeline with hierarchical structure from State to Village leve… | |
| 59 | 01walid/Algerian-Wilayas | 13 | 7 | 3 | MIT | Algerian Wilayas list in different formats (XML, JSON, xsl..etc) for the sake of DRY | |
| 60 | valencprado/mysql-colinha | 13 | 3 | 0 | MIT | Resumos sobre o banco de dados MySQL. | |
| 61 | grahamwetzler/advent-of-code-dbt-2022 | 13 | 0 | 0 | — | Advent of Code solutions using dbt, duckdb, dbt-duckdb | |
| 62 | fhoffa/AdventOfCodeSQL | 12 | 4 | 0 | Apache-2.0 | advent of code with SQL | |
| 63 | piotrsobecki/jSQLtuner | 12 | 4 | 2 | — | SQL tuner for improving Java applications ORM performance using NoSQL technologies. | |
| 64 | theammarngp-makes/SQL-Engineering-Handbook | 12 | 4 | 5 | MIT | SQL Engineeering Handbook by Mohammad Ammar . Production-ready with SQL tutorials, interview questions, real-world projects, query optimiza… | |
| 65 | Emon-ProCoder7/sql-Command-Repository | 11 | 1 | 0 | — | Some of my sql projects with sqlite. | |
| 66 | vipul-shinde/marketing-analytics-cs | 11 | 9 | 0 | MIT | DVD Rental Co Marketing Analytics Case Study - Serious SQL ✨ | |
| 67 | simandebvu/SQL-Zoo | 11 | 0 | 0 | MIT | My Solution Set for the SQL Zoo Challenges and quizzes. Written in SQL. | |
| 68 | tacohirosystems/remotehiro | 11 | 0 | 1 | EUPL-1.2 | find work, anywhere | |
| 69 | tschf/pl-gapi | 10 | 5 | 1 | GPL-2.0 | ||
| 70 | RKNITH/MY-SQL-PRACTICE | 10 | 0 | 0 | — | ||
| 71 | wetory/sql-server-replication-monitoring | 10 | 10 | 0 | — | Simple solution for monitoring replication subscribers health state. | |
| 72 | ShenHongFei/dolphindb-vs-influxdb | 10 | 0 | 0 | — | DolphinDB vs InfluxDB 性能对比测试报告 (Performance Comparision Test Report) | |
| 73 | MHeydari/BCrypt-algorithm-in-Oracle-plsql | 10 | 7 | 1 | — | Implementation of BCrypt hashing in Oracle PLSQL | |
| 74 | AdityaBhatt3010/CVE-2025-59287-When-your-patch-server-becomes-the-attack-vector | 10 | 0 | 0 | MIT | CVE-2025-59287 — Critical unauthenticated RCE in Windows Server Update Services (WSUS) via unsafe deserialization of an AuthorizationCookie… | |
| 75 | manaswikamila05/RSVP-Movies | 10 | 10 | 0 | — | SQL queries performed on IMDb database to provide recommendations to RSVP Movies based on insights. | |
| 76 | davidrabko/learning-sql | 9 | 1 | 0 | Unlicense | Exercises and Examples from Learning SQL by Alan Beaulieu and LeetCode SQL 50 | |
| 77 | iamAntimPal/LeetCode_SQL_Database | 9 | 5 | 3 | — | This repo contains my SQL solutions for LeetCode problems. Each file includes a problem description, optimized SQL query, and explanations.… | |
| 78 | Prakashdeveloper03/Leetcode-SQL | 9 | 0 | 0 | — | This repository contains all my Leetcode problem solutions source code in SQL programming language. | |
| 79 | qanhnn12/SQL-Leetcode-Challenge-Solutions | 9 | 7 | 0 | MIT | Solutions for all free SQL questions on Leetcode executed on MySQL and MS SQL Server. | |
| 80 | electronics4fun/PartDb-Altium-Connector | 9 | 2 | 1 | MIT | Connects PartDb with Altium using mySQL views | |
| 81 | cistoner/Lstore | 9 | 5 | 6 | — | This tool allows you to anonymously or publicly share contents in LAN. Clients can download contents directly from you | |
| 82 | hacker9/Donor9 | 9 | 2 | 0 | BSD-3-Clause | ||
| 83 | j-b-ferguson/relational-database-design-and-test | 8 | 0 | 0 | — | Designing and testing a relational database for The Happy Phone Company. | |
| 84 | AlysterF/8week-SQL-challenge | 8 | 2 | 0 | — | 8 case studies to apply SQL query solutions! | |
| 85 | theammarngp-makes/ecommerce-rfm-customer-segmentation | 8 | 1 | 0 | MIT | RFM (Recency, Frequency, Monetary) analysis using SQL to segment customers and identify high-value, loyal, and at-risk users in an e-commer… | |
| 86 | artie93/When-Was-the-Golden-Age-of-Video-Games- | 8 | 0 | 0 | — | ||
| 87 | gdsotirov/lemans24 | 8 | 2 | 1 | GPL-2.0 | A small schema for statistics on 24 Hours of Le Mans endurance race. | |
| 88 | ndleah/dvd-rental-marketing-analytics | 8 | 4 | 0 | — | 🎥 Email marketing campaign analysis | |
| 89 | zikwall/clickhouse-docs | 8 | 1 | 0 | — | 🐾 ClickHouse Database + Apache Kafka + Zookeeper + Configure Cluster (Shards, Replicated) | |
| 90 | ndleah/bitcoin-prices-analysis | 8 | 3 | 0 | — | 💸 Bitcoin trading analysis | |
| 91 | SANKALP1011/LibraryDatabase | 8 | 0 | 0 | MIT | This is an library database build using sql . | |
| 92 | synthesized-io/pagila-data-generation | 8 | 0 | 0 | BSD-3-Clause | A set of SQL scripts for random data generation for the Pagila database | |
| 93 | shukkkur/International-Debt-Statistics | 8 | 0 | 0 | Unlicense | SQL queries to answer interesting questions about international debt using data from The World Bank. | |
| 94 | FL-Marine/SQL_best_practices | 8 | 2 | 0 | — | Personal SQL best practices README | |
| 95 | echlebek/nutes | 7 | 2 | 1 | MIT | SQL import of USDA nutrient database | |
| 96 | al-ghaly/Airline-Company-Data-Warehouse | 7 | 6 | 0 | MIT | Data Warehouse modeling, design, implementation, and analysis for an Airline Company. | |
| 97 | rezwan-ahmed-l7/Database-Management-System | 7 | 0 | 0 | MIT | Personal learning repository for Database Management Systems — SQL practice, relational database design, normalization, ER diagrams, and pr… | |
| 98 | GiuseppeBellamacina/DentistBase | 7 | 0 | 0 | — | ||
| 99 | granthjoshi01/Event-Analytics-Platform | 7 | 0 | 0 | MIT | A production-style event analytics system focused on immutable event modeling, SQL-driven metrics, retention, and funnel analysis. | |
| 100 | evgeniimatveev/SQL-Database-Design-A-Z | 7 | 0 | 0 | — | SQL database design in PostgreSQL: normalization (1NF→3NF), ERD diagrams, subqueries, window functions, indexing and query optimization |
Fork counts include open pull requests in
open_issues_count, because that is how GitHub's API reports it.
Descriptions are truncated to 140 characters; the full text is in the JSONL
download.
Download the SQL data
- JSONL — raw GitHub Search API objects (588.1 KB, 100 lines)
- Markdown table of the same ranking
- All 30 JSONL files
curl -sSL -o sql.jsonl \
https://raw.githubusercontent.com/havaianasdestruido/top100/main/data/JSONL/sql.jsonl
jq -r '.full_name + " " + (.stargazers_count|tostring)' sql.jsonl | head -10
How this list is built
A single GitHub Search API request per language —
?q=language:sql&sort=stars&order=desc&per_page=100
— refreshed hourly by a scheduled GitHub Actions workflow and committed back to
the repository. The records are never reshaped: every field GitHub returned is
preserved. The methodology page covers the query,
the rate limits, the fields the Search API omits and the known limitations, and the
field reference documents every JSON key.
Frequently asked questions
What is the most-starred SQL repository on GitHub?
ben-nour/SQL-tips-and-tricks is the most-starred SQL repository with 2,310 stars as of 5 October 2026, ahead of cahyadsn/wilayah (1,318) and Thomas-George-T/HackerRank-SQL-Challenges-Solutions (819).
How many SQL repositories are on GitHub?
GitHub reports 4,580 public repositories whose detected primary language is SQL. Top100 ranks the 100 most-starred of them; 100th place currently needs 7 stars.
How do I download the top 100 SQL repositories as JSON?
Download data/JSONL/sql.jsonl — 100 lines, each the complete GitHub Search API object for one repository, including topics, licence, every count and every timestamp. A readable Markdown table of the same ranking is also published.