Top100 ★ 1 on GitHub

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).

The 100 most-starred SQL repositories

The 100 most-starred SQL repositories on GitHub, refreshed 5 October 2026, 22:59 UTC. Ranked by stars.
#Repository★ StarsForksOpen issuesLicenceLast pushDescription
1ben-nour/SQL-tips-and-tricks2,3101082MITSQL tips and tricks
2cahyadsn/wilayah1,3184331MITKode dan Data Wilayah Administrasi & Pulau Indonesia sesuai Kepmendagri No 300.2.2-2430 Tahun 2025 dengan PHP+MySQL+AJaX. Demo link : http…
3Thomas-George-T/HackerRank-SQL-Challenges-Solutions8192406MITThe solutions of all SQL hackerrank challenges using MySQL environment
4brunocampos01/banco-de-dados423620MITAulas, exercícios e resumos sobre banco de dados
5basedosdados/sdk4239034MIT⚙️ Código de manutenção do datalake (metadados e pacotes de acesso) | 📖 Docs: https://basedosdados.org/docs/home
6Velir/dbt-ga440216760MITdbt Package for modeling raw data exported by Google Analytics 4. BigQuery support, only.
7tony-landis/agilebill3101686NOASSERTIONOpen source billing and invoicing
8ClickHouse/NoiSQL29441Apache-2.0NoiSQL — Generating Music With SQL Queries
9faizanxmulla/sql-portfolio285541MITRepository of SQL projects, case studies, platform solutions, and learning resources to enhance SQL skills through practical applications.…
10dhaval1406/SQL229823—sql related stuff, interview questions, mySQL complex queries
11Snowflake-Labs/dbt_constraints178448Apache-2.0This package generates database constraints based on the tests in a dbt project
12tnightengale/dbt-meta-testing1321911GPL-3.0A dbt SQL package for ensuring documentation and test coverage, with granular control.
13leehach/census-postgres121700—PostgreSQL schema and import scripts for recent US Census data
14cahyadsn/daerah1171052—menampilkan data provinsi,kota/kabupaten,kecamatan dan desa/kelurahan menggunakan AjAX. (update terbaru sesuai Kepmendagri no 100.1.1-6117…
15SparkhoundSQL/sql-server-toolbox117470—SQL Server Toolbox by the Sparkhound SQL Team
16ssahibsingh/Social-Media-Database-Project112361MIT📊 This project is part of Lab Evaluation of Course Fundamentals of Database Management Systems Lab.
17ndleah/8-Week-SQL-Challenge88450—#8WeekSQLChallenge by Danny Ma.
18avishek-choudhary/Music-Store-Analysis80302—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…
19mgramin/malewicz7019MITSuprematistic hackable GUI SQL-manager written in SQL itself
20sunnotes/Ali-Data-Mining63320—阿里巴巴大数据竞赛
21cahyadsn/wilayah_boundaries61291MITData boundaries wilayah administrasi pemerintahan Indonesia sesuai Kepmendagri No 300.2.2-2430 Tahun 2025
22TrinityCore/TDB_4.3.4_NLU591110—If you are looking for TDB for 4.3.4 go to:
23mattDevigili/dms-smm69551400—Teaching material for a B-school, post-grad module on Data Management Systems
24maf345/sql-hands-on50230—This repository contains SQL queries from various popular online learning resources e.g. Vertabelo Academy, SQLZoo etc.
25SomiaNasir/Google-Data-Analytics-Capstone-Cyclistic-Case-Study45172—
26tnightengale/dbt-activity-schema44913GPL-3.0A dbt-Core package for generating models from an activity stream.
27Victor-Kipruto-Rop/SQL-for-Data-Engineering4200—
28cahyadsn/wilayah_kodepos42120MITKodepos berdasarkan kode wilayah Indonesia Kepmendagri No 300.2.2-3128 Tahun 2025
29biljana-zobenica/SQL-complete-tutorial41100—This is a comprehensive SQL tutorial by Mosh Hamedani that covers both fundamentals and advanced topics. Additionally, Intuitive SQL for An…
30ACEmulator/ACE-World-16PY-Patches38711AGPL-3.0World Database Releases for ACEmulator. This repo uses ACE-World-16PY as the base and combines it with patches to create the complete World.
31cahyadsn/db_rajaongkir32330MITData Kode Provinsi, Kota/Kabupaten dan Kecamatan untuk RajaOngkir
32ritakalach/sqlzoo-solutions3091—SQL practice problems and solutions.
33fab-geocommuns/RNB2967Apache-2.0Construire le Référentiel National des Bâtiments (RNB) en France
34shivamgarg444/Cyclistic-Case-Study2430—Case study under capstone project of Google Data Analytics Certificate
35nataliapaulino/byte-by-byte2110—SQL, C#, and programming exercises for learning and practice.
36Alexsandro-01/mysql2020—
37ndleah/people-data-analysis1990—👥 Employee analysis #DWD
38FL-Marine/8-Week-SQL-Challenge1970—Case Study's from Danny Ma's Serious SQL Course
39ndleah/northwind1950—💼 SQL, company data analysis
40folio-org/folio-analytics183659Apache-2.0Community query repository for FOLIO analytics based on Metadb/LDP
41Oyebamiji-Micheal/100-Days-of-SQL-Beginner-to-Advance1880—MySQL and Oracle in 100 days
42longwall/voynich_manchu_oradb1720MITA research of Manchu hypothesis of Voynich manuscript. It's an Oracle database with tabes, DML scripts, PLSQL functions and queries.
43dwijendra626/DataAnalysis_and_Visualization_Projects1710—This repository contains End-to-end Data Analytics Projects
44jhajagos/DocGraph17100—Code related to DocGraph analysis
45pietdaniel/poetification1730—give texts give poems
46DFE-Digital/gias-query-tool1741—The easiest way to write advanced queries against the Get Information About Schools (GIAS) database
47ndleah/health-analysis16110—This case study is contained within the Serious SQL course by Danny Ma
48mennamamdouh/Analysis-of-Video-Games1520—This repository is for a data analytics project using SQL. The project is about analyzing and getting insights about video games sales, and…
49kolorobot/quartz-jee-demo15150—Quartz with Clustering JEE demo application
50bharathguntreddi3/Oracle_DB_SSMS_Development1400—This repo Contains Basic commands and Queries and intro to SQL and Oracle and PLSQL and TOAD !
51Flowminder/COVID-191475MPL-2.0Data insights for COVID-19 response: resources for producing mobility indicators and analysis from CDR data
52ITurres/vet-clinic-db1400MIT🐘PostgreSQL🐘 | The objective of this project is to cultivate a comprehensive understanding of relational databases and key tools including…
53thatjpcsguy/shorts1460—Can i wear shorts today? http://shorts.today
54andrewmunro/Vanilla1451—Vanilla WoW Emulator for Educational Purposes
55vipul-shinde/people-analytics-cs1340MITPeople Analytics Case Study - Serious SQL 🎃
56gdsotirov/hr_schema1300GPL-2.0An example HR database for management of company's organization, employees, etc.
57nextail/pulpocon-data-pipelines1382—Repositorio para el taller "Construyendo pipelines de datos a escala" de la PulpoCon 2022
58nvmaxim/india-atd-postgis-database1310—PostGIS database for India's Administrative-Territorial Division (ATD). ETL pipeline with hierarchical structure from State to Village leve…
5901walid/Algerian-Wilayas1373MITAlgerian Wilayas list in different formats (XML, JSON, xsl..etc) for the sake of DRY
60valencprado/mysql-colinha1330MITResumos sobre o banco de dados MySQL.
61grahamwetzler/advent-of-code-dbt-20221300—Advent of Code solutions using dbt, duckdb, dbt-duckdb
62fhoffa/AdventOfCodeSQL1240Apache-2.0advent of code with SQL
63piotrsobecki/jSQLtuner1242—SQL tuner for improving Java applications ORM performance using NoSQL technologies.
64theammarngp-makes/SQL-Engineering-Handbook1245MITSQL Engineeering Handbook by Mohammad Ammar . Production-ready with SQL tutorials, interview questions, real-world projects, query optimiza…
65Emon-ProCoder7/sql-Command-Repository1110—Some of my sql projects with sqlite.
66vipul-shinde/marketing-analytics-cs1190MITDVD Rental Co Marketing Analytics Case Study - Serious SQL ✨
67simandebvu/SQL-Zoo1100MITMy Solution Set for the SQL Zoo Challenges and quizzes. Written in SQL.
68tacohirosystems/remotehiro1101EUPL-1.2find work, anywhere
69tschf/pl-gapi1051GPL-2.0
70RKNITH/MY-SQL-PRACTICE1000—
71wetory/sql-server-replication-monitoring10100—Simple solution for monitoring replication subscribers health state.
72ShenHongFei/dolphindb-vs-influxdb1000—DolphinDB vs InfluxDB 性能对比测试报告 (Performance Comparision Test Report)
73MHeydari/BCrypt-algorithm-in-Oracle-plsql1071—Implementation of BCrypt hashing in Oracle PLSQL
74AdityaBhatt3010/CVE-2025-59287-When-your-patch-server-becomes-the-attack-vector1000MITCVE-2025-59287 — Critical unauthenticated RCE in Windows Server Update Services (WSUS) via unsafe deserialization of an AuthorizationCookie…
75manaswikamila05/RSVP-Movies10100—SQL queries performed on IMDb database to provide recommendations to RSVP Movies based on insights.
76davidrabko/learning-sql910UnlicenseExercises and Examples from Learning SQL by Alan Beaulieu and LeetCode SQL 50
77iamAntimPal/LeetCode_SQL_Database953—This repo contains my SQL solutions for LeetCode problems. Each file includes a problem description, optimized SQL query, and explanations.…
78Prakashdeveloper03/Leetcode-SQL900—This repository contains all my Leetcode problem solutions source code in SQL programming language.
79qanhnn12/SQL-Leetcode-Challenge-Solutions970MITSolutions for all free SQL questions on Leetcode executed on MySQL and MS SQL Server.
80electronics4fun/PartDb-Altium-Connector921MITConnects PartDb with Altium using mySQL views
81cistoner/Lstore956—This tool allows you to anonymously or publicly share contents in LAN. Clients can download contents directly from you
82hacker9/Donor9920BSD-3-Clause
83j-b-ferguson/relational-database-design-and-test800—Designing and testing a relational database for The Happy Phone Company.
84AlysterF/8week-SQL-challenge820—8 case studies to apply SQL query solutions!
85theammarngp-makes/ecommerce-rfm-customer-segmentation810MITRFM (Recency, Frequency, Monetary) analysis using SQL to segment customers and identify high-value, loyal, and at-risk users in an e-commer…
86artie93/When-Was-the-Golden-Age-of-Video-Games-800—
87gdsotirov/lemans24821GPL-2.0A small schema for statistics on 24 Hours of Le Mans endurance race.
88ndleah/dvd-rental-marketing-analytics840—🎥 Email marketing campaign analysis
89zikwall/clickhouse-docs810—🐾 ClickHouse Database + Apache Kafka + Zookeeper + Configure Cluster (Shards, Replicated)
90ndleah/bitcoin-prices-analysis830—💸 Bitcoin trading analysis
91SANKALP1011/LibraryDatabase800MITThis is an library database build using sql .
92synthesized-io/pagila-data-generation800BSD-3-ClauseA set of SQL scripts for random data generation for the Pagila database
93shukkkur/International-Debt-Statistics800UnlicenseSQL queries to answer interesting questions about international debt using data from The World Bank.
94FL-Marine/SQL_best_practices820—Personal SQL best practices README
95echlebek/nutes721MITSQL import of USDA nutrient database
96al-ghaly/Airline-Company-Data-Warehouse760MITData Warehouse modeling, design, implementation, and analysis for an Airline Company.
97rezwan-ahmed-l7/Database-Management-System700MITPersonal learning repository for Database Management Systems — SQL practice, relational database design, normalization, ER diagrams, and pr…
98GiuseppeBellamacina/DentistBase700—
99granthjoshi01/Event-Analytics-Platform700MITA production-style event analytics system focused on immutable event modeling, SQL-driven metrics, retention, and funnel analysis.
100evgeniimatveev/SQL-Database-Design-A-Z700—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

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.

Other languages