Data refreshed 18 November 2026, 13:49 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,879 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 (55 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,879 repositories GitHub reports
- 588.0 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 | 109 | 2 | MIT | SQL tips and tricks | |
| 2 | cahyadsn/wilayah | 1,341 | 432 | 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 | 818 | 239 | 6 | MIT | The solutions of all SQL hackerrank challenges using MySQL environment | |
| 4 | basedosdados/sdk | 434 | 90 | 34 | MIT | ⚙️ Código de manutenção do datalake (metadados e pacotes de acesso) | 📖 Docs: https://basedosdados.org/docs/home | |
| 5 | brunocampos01/banco-de-dados | 425 | 62 | 0 | MIT | Aulas, exercícios e resumos sobre banco de dados | |
| 6 | Velir/dbt-ga4 | 403 | 167 | 62 | MIT | dbt Package for modeling raw data exported by Google Analytics 4. BigQuery support, only. | |
| 7 | tony-landis/agilebill | 311 | 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 | 291 | 54 | 1 | MIT | Repository of SQL projects, case studies, platform solutions, and learning resources to enhance SQL skills through practical applications.… | |
| 10 | dhaval1406/SQL | 230 | 82 | 3 | — | sql related stuff, interview questions, mySQL complex queries | |
| 11 | Snowflake-Labs/dbt_constraints | 182 | 44 | 1 | Apache-2.0 | This package generates database constraints based on the tests in a dbt project | |
| 12 | tnightengale/dbt-meta-testing | 133 | 20 | 10 | GPL-3.0 | A dbt SQL package for ensuring documentation and test coverage, with granular control. | |
| 13 | leehach/census-postgres | 122 | 70 | 0 | — | PostgreSQL schema and import scripts for recent US Census data | |
| 14 | SparkhoundSQL/sql-server-toolbox | 118 | 47 | 0 | — | SQL Server Toolbox by the Sparkhound SQL Team | |
| 15 | 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… | |
| 16 | ssahibsingh/Social-Media-Database-Project | 113 | 37 | 1 | MIT | 📊 This project is part of Lab Evaluation of Course Fundamentals of Database Management Systems Lab. | |
| 17 | ndleah/8-Week-SQL-Challenge | 91 | 45 | 0 | — | #8WeekSQLChallenge by Danny Ma. | |
| 18 | avishek-choudhary/Music-Store-Analysis | 84 | 31 | 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 | cahyadsn/wilayah_boundaries | 66 | 28 | 2 | MIT | Data boundaries wilayah administrasi pemerintahan Indonesia sesuai Kepmendagri No 300.2.2-2430 Tahun 2025 | |
| 21 | sunnotes/Ali-Data-Mining | 63 | 32 | 0 | — | 阿里巴巴大数据竞赛 | |
| 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 | 52 | 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 | 46 | 16 | 2 | — | ||
| 26 | cahyadsn/wilayah_kodepos | 46 | 13 | 0 | MIT | Kodepos berdasarkan kode wilayah Indonesia Kepmendagri No 300.2.2-3128 Tahun 2025 | |
| 27 | tnightengale/dbt-activity-schema | 44 | 9 | 13 | GPL-3.0 | A dbt-Core package for generating models from an activity stream. | |
| 28 | biljana-zobenica/SQL-complete-tutorial | 42 | 10 | 0 | — | This is a comprehensive SQL tutorial by Mosh Hamedani that covers both fundamentals and advanced topics. Additionally, Intuitive SQL for An… | |
| 29 | Victor-Kipruto-Rop/SQL-for-Data-Engineering | 42 | 0 | 0 | — | ||
| 30 | ACEmulator/ACE-World-16PY-Patches | 37 | 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 | 34 | 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/northwind | 20 | 5 | 0 | — | 💼 SQL, company data analysis | |
| 38 | ndleah/people-data-analysis | 19 | 9 | 0 | — | 👥 Employee analysis #DWD | |
| 39 | FL-Marine/8-Week-SQL-Challenge | 19 | 7 | 0 | — | Case Study's from Danny Ma's Serious SQL Course | |
| 40 | Oyebamiji-Micheal/100-Days-of-SQL-Beginner-to-Advance | 19 | 8 | 0 | — | MySQL and Oracle in 100 days | |
| 41 | folio-org/folio-analytics | 18 | 36 | 59 | Apache-2.0 | Community query repository for FOLIO analytics based on Metadb/LDP | |
| 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 | ashley-andrade/estetica-bem-estar | 17 | 0 | 0 | — | Este é um projeto Full Stack completo desenvolvido especificamente para o cenário de clínicas de estética e salões de beleza. A aplicação v… | |
| 45 | jhajagos/DocGraph | 17 | 10 | 0 | — | Code related to DocGraph analysis | |
| 46 | pietdaniel/poetification | 17 | 3 | 0 | — | give texts give poems | |
| 47 | DFE-Digital/gias-query-tool | 17 | 4 | 1 | — | The easiest way to write advanced queries against the Get Information About Schools (GIAS) database | |
| 48 | ndleah/health-analysis | 16 | 11 | 0 | — | This case study is contained within the Serious SQL course by Danny Ma | |
| 49 | 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… | |
| 50 | kolorobot/quartz-jee-demo | 15 | 15 | 0 | — | Quartz with Clustering JEE demo application | |
| 51 | vipul-shinde/people-analytics-cs | 14 | 4 | 0 | MIT | People Analytics Case Study - Serious SQL 🎃 | |
| 52 | 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 ! | |
| 53 | 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 | |
| 54 | 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… | |
| 55 | thatjpcsguy/shorts | 14 | 6 | 0 | — | Can i wear shorts today? http://shorts.today | |
| 56 | theammarngp-makes/SQL-Engineering-Handbook | 14 | 4 | 6 | MIT | SQL Engineeering Handbook by Mohammad Ammar . Production-ready with SQL tutorials, interview questions, real-world projects, query optimiza… | |
| 57 | andrewmunro/Vanilla | 14 | 5 | 1 | — | Vanilla WoW Emulator for Educational Purposes | |
| 58 | gdsotirov/hr_schema | 13 | 0 | 0 | GPL-2.0 | An example HR database for management of company's organization, employees, etc. | |
| 59 | nextail/pulpocon-data-pipelines | 13 | 8 | 2 | — | Repositorio para el taller "Construyendo pipelines de datos a escala" de la PulpoCon 2022 | |
| 60 | nvmaxim/india-atd-postgis-database | 13 | 0 | 0 | — | PostGIS database for India's Administrative-Territorial Division (ATD). ETL pipeline with hierarchical structure from State to Village leve… | |
| 61 | 01walid/Algerian-Wilayas | 13 | 7 | 3 | MIT | Algerian Wilayas list in different formats (XML, JSON, xsl..etc) for the sake of DRY | |
| 62 | valencprado/mysql-colinha | 13 | 3 | 0 | MIT | Resumos sobre o banco de dados MySQL. | |
| 63 | grahamwetzler/advent-of-code-dbt-2022 | 13 | 0 | 0 | — | Advent of Code solutions using dbt, duckdb, dbt-duckdb | |
| 64 | fhoffa/AdventOfCodeSQL | 12 | 4 | 0 | Apache-2.0 | advent of code with SQL | |
| 65 | piotrsobecki/jSQLtuner | 12 | 4 | 2 | — | SQL tuner for improving Java applications ORM performance using NoSQL technologies. | |
| 66 | tacohirosystems/remotehiro | 12 | 0 | 1 | EUPL-1.2 | find work, anywhere | |
| 67 | Emon-ProCoder7/sql-Command-Repository | 11 | 1 | 0 | — | Some of my sql projects with sqlite. | |
| 68 | vipul-shinde/marketing-analytics-cs | 11 | 9 | 0 | MIT | DVD Rental Co Marketing Analytics Case Study - Serious SQL ✨ | |
| 69 | simandebvu/SQL-Zoo | 11 | 0 | 0 | MIT | My Solution Set for the SQL Zoo Challenges and quizzes. Written in SQL. | |
| 70 | tschf/pl-gapi | 10 | 5 | 1 | GPL-2.0 | ||
| 71 | RKNITH/MY-SQL-PRACTICE | 10 | 0 | 0 | — | ||
| 72 | iamAntimPal/LeetCode_SQL_Database | 10 | 5 | 3 | — | This repo contains my SQL solutions for LeetCode problems. Each file includes a problem description, optimized SQL query, and explanations.… | |
| 73 | wetory/sql-server-replication-monitoring | 10 | 10 | 0 | — | Simple solution for monitoring replication subscribers health state. | |
| 74 | ShenHongFei/dolphindb-vs-influxdb | 10 | 0 | 0 | — | DolphinDB vs InfluxDB 性能对比测试报告 (Performance Comparision Test Report) | |
| 75 | MHeydari/BCrypt-algorithm-in-Oracle-plsql | 10 | 7 | 1 | — | Implementation of BCrypt hashing in Oracle PLSQL | |
| 76 | 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… | |
| 77 | manaswikamila05/RSVP-Movies | 10 | 10 | 0 | — | SQL queries performed on IMDb database to provide recommendations to RSVP Movies based on insights. | |
| 78 | davidrabko/learning-sql | 9 | 1 | 0 | Unlicense | Exercises and Examples from Learning SQL by Alan Beaulieu and LeetCode SQL 50 | |
| 79 | Prakashdeveloper03/Leetcode-SQL | 9 | 0 | 0 | — | This repository contains all my Leetcode problem solutions source code in SQL programming language. | |
| 80 | qanhnn12/SQL-Leetcode-Challenge-Solutions | 9 | 7 | 0 | MIT | Solutions for all free SQL questions on Leetcode executed on MySQL and MS SQL Server. | |
| 81 | theammarngp-makes/ecommerce-rfm-customer-segmentation | 9 | 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… | |
| 82 | electronics4fun/PartDb-Altium-Connector | 9 | 2 | 1 | MIT | Connects PartDb with Altium using mySQL views | |
| 83 | cistoner/Lstore | 9 | 5 | 6 | — | This tool allows you to anonymously or publicly share contents in LAN. Clients can download contents directly from you | |
| 84 | hacker9/Donor9 | 9 | 2 | 0 | BSD-3-Clause | ||
| 85 | j-b-ferguson/relational-database-design-and-test | 8 | 0 | 0 | — | Designing and testing a relational database for The Happy Phone Company. | |
| 86 | AlysterF/8week-SQL-challenge | 8 | 2 | 0 | — | 8 case studies to apply SQL query solutions! | |
| 87 | artie93/When-Was-the-Golden-Age-of-Video-Games- | 8 | 0 | 0 | — | ||
| 88 | gdsotirov/lemans24 | 8 | 2 | 1 | GPL-2.0 | A small schema for statistics on 24 Hours of Le Mans endurance race. | |
| 89 | ndleah/dvd-rental-marketing-analytics | 8 | 4 | 0 | — | 🎥 Email marketing campaign analysis | |
| 90 | Oyebamiji-Micheal/SQL-Practice-Questions-and-Answers | 8 | 2 | 0 | MIT | This repository contains practice questions and solutions and is solely dedicated to mastering SQL | |
| 91 | sondosaabed/TNB-MySQL | 8 | 0 | 0 | — | The MySQL code queries for The National Bank of Palestine | |
| 92 | zikwall/clickhouse-docs | 8 | 1 | 0 | — | 🐾 ClickHouse Database + Apache Kafka + Zookeeper + Configure Cluster (Shards, Replicated) | |
| 93 | ndleah/bitcoin-prices-analysis | 8 | 3 | 0 | — | 💸 Bitcoin trading analysis | |
| 94 | SANKALP1011/LibraryDatabase | 8 | 0 | 0 | MIT | This is an library database build using sql . | |
| 95 | synthesized-io/pagila-data-generation | 8 | 0 | 0 | BSD-3-Clause | A set of SQL scripts for random data generation for the Pagila database | |
| 96 | shukkkur/International-Debt-Statistics | 8 | 0 | 0 | Unlicense | SQL queries to answer interesting questions about international debt using data from The World Bank. | |
| 97 | FL-Marine/SQL_best_practices | 8 | 2 | 0 | — | Personal SQL best practices README | |
| 98 | vincentclee/mh370_satellite_data_communication_logs | 8 | 5 | 0 | — | Data from communications between Inmarsat satellites and the missing Boeing 777 Malaysia Airlines Flight MH370 (9M-MRO) | |
| 99 | echlebek/nutes | 7 | 2 | 1 | MIT | SQL import of USDA nutrient database | |
| 100 | al-ghaly/Airline-Company-Data-Warehouse | 7 | 6 | 0 | MIT | Data Warehouse modeling, design, implementation, and analysis for an Airline Company. |
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.0 KB, 100 lines)
- Markdown table of the same ranking
- All 38 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 18 November 2026, ahead of cahyadsn/wilayah (1,341) and Thomas-George-T/HackerRank-SQL-Challenges-Solutions (818).
How many SQL repositories are on GitHub?
GitHub reports 4,879 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.