Top100 ★ 3 on GitHub

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

The 100 most-starred SQL repositories

The 100 most-starred SQL repositories on GitHub, refreshed 18 November 2026, 13:49 UTC. Ranked by stars.
#Repository★ StarsForksOpen issuesLicenceLast pushDescription
1ben-nour/SQL-tips-and-tricks2,3101092MITSQL tips and tricks
2cahyadsn/wilayah1,3414321MITKode 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-Solutions8182396MITThe solutions of all SQL hackerrank challenges using MySQL environment
4basedosdados/sdk4349034MIT⚙️ Código de manutenção do datalake (metadados e pacotes de acesso) | 📖 Docs: https://basedosdados.org/docs/home
5brunocampos01/banco-de-dados425620MITAulas, exercícios e resumos sobre banco de dados
6Velir/dbt-ga440316762MITdbt Package for modeling raw data exported by Google Analytics 4. BigQuery support, only.
7tony-landis/agilebill3111686NOASSERTIONOpen source billing and invoicing
8ClickHouse/NoiSQL29441Apache-2.0NoiSQL — Generating Music With SQL Queries
9faizanxmulla/sql-portfolio291541MITRepository of SQL projects, case studies, platform solutions, and learning resources to enhance SQL skills through practical applications.…
10dhaval1406/SQL230823—sql related stuff, interview questions, mySQL complex queries
11Snowflake-Labs/dbt_constraints182441Apache-2.0This package generates database constraints based on the tests in a dbt project
12tnightengale/dbt-meta-testing1332010GPL-3.0A dbt SQL package for ensuring documentation and test coverage, with granular control.
13leehach/census-postgres122700—PostgreSQL schema and import scripts for recent US Census data
14SparkhoundSQL/sql-server-toolbox118470—SQL Server Toolbox by the Sparkhound SQL Team
15cahyadsn/daerah1171052—menampilkan data provinsi,kota/kabupaten,kecamatan dan desa/kelurahan menggunakan AjAX. (update terbaru sesuai Kepmendagri no 100.1.1-6117…
16ssahibsingh/Social-Media-Database-Project113371MIT📊 This project is part of Lab Evaluation of Course Fundamentals of Database Management Systems Lab.
17ndleah/8-Week-SQL-Challenge91450—#8WeekSQLChallenge by Danny Ma.
18avishek-choudhary/Music-Store-Analysis84312—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
20cahyadsn/wilayah_boundaries66282MITData boundaries wilayah administrasi pemerintahan Indonesia sesuai Kepmendagri No 300.2.2-2430 Tahun 2025
21sunnotes/Ali-Data-Mining63320—阿里巴巴大数据竞赛
22TrinityCore/TDB_4.3.4_NLU591110—If you are looking for TDB for 4.3.4 go to:
23mattDevigili/dms-smm69552400—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-Study46162—
26cahyadsn/wilayah_kodepos46130MITKodepos berdasarkan kode wilayah Indonesia Kepmendagri No 300.2.2-3128 Tahun 2025
27tnightengale/dbt-activity-schema44913GPL-3.0A dbt-Core package for generating models from an activity stream.
28biljana-zobenica/SQL-complete-tutorial42100—This is a comprehensive SQL tutorial by Mosh Hamedani that covers both fundamentals and advanced topics. Additionally, Intuitive SQL for An…
29Victor-Kipruto-Rop/SQL-for-Data-Engineering4200—
30ACEmulator/ACE-World-16PY-Patches37711AGPL-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_rajaongkir32340MITData 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/northwind2050—💼 SQL, company data analysis
38ndleah/people-data-analysis1990—👥 Employee analysis #DWD
39FL-Marine/8-Week-SQL-Challenge1970—Case Study's from Danny Ma's Serious SQL Course
40Oyebamiji-Micheal/100-Days-of-SQL-Beginner-to-Advance1980—MySQL and Oracle in 100 days
41folio-org/folio-analytics183659Apache-2.0Community query repository for FOLIO analytics based on Metadb/LDP
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
44ashley-andrade/estetica-bem-estar1700—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…
45jhajagos/DocGraph17100—Code related to DocGraph analysis
46pietdaniel/poetification1730—give texts give poems
47DFE-Digital/gias-query-tool1741—The easiest way to write advanced queries against the Get Information About Schools (GIAS) database
48ndleah/health-analysis16110—This case study is contained within the Serious SQL course by Danny Ma
49mennamamdouh/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…
50kolorobot/quartz-jee-demo15150—Quartz with Clustering JEE demo application
51vipul-shinde/people-analytics-cs1440MITPeople Analytics Case Study - Serious SQL 🎃
52bharathguntreddi3/Oracle_DB_SSMS_Development1400—This repo Contains Basic commands and Queries and intro to SQL and Oracle and PLSQL and TOAD !
53Flowminder/COVID-191475MPL-2.0Data insights for COVID-19 response: resources for producing mobility indicators and analysis from CDR data
54ITurres/vet-clinic-db1400MIT🐘PostgreSQL🐘 | The objective of this project is to cultivate a comprehensive understanding of relational databases and key tools including…
55thatjpcsguy/shorts1460—Can i wear shorts today? http://shorts.today
56theammarngp-makes/SQL-Engineering-Handbook1446MITSQL Engineeering Handbook by Mohammad Ammar . Production-ready with SQL tutorials, interview questions, real-world projects, query optimiza…
57andrewmunro/Vanilla1451—Vanilla WoW Emulator for Educational Purposes
58gdsotirov/hr_schema1300GPL-2.0An example HR database for management of company's organization, employees, etc.
59nextail/pulpocon-data-pipelines1382—Repositorio para el taller "Construyendo pipelines de datos a escala" de la PulpoCon 2022
60nvmaxim/india-atd-postgis-database1300—PostGIS database for India's Administrative-Territorial Division (ATD). ETL pipeline with hierarchical structure from State to Village leve…
6101walid/Algerian-Wilayas1373MITAlgerian Wilayas list in different formats (XML, JSON, xsl..etc) for the sake of DRY
62valencprado/mysql-colinha1330MITResumos sobre o banco de dados MySQL.
63grahamwetzler/advent-of-code-dbt-20221300—Advent of Code solutions using dbt, duckdb, dbt-duckdb
64fhoffa/AdventOfCodeSQL1240Apache-2.0advent of code with SQL
65piotrsobecki/jSQLtuner1242—SQL tuner for improving Java applications ORM performance using NoSQL technologies.
66tacohirosystems/remotehiro1201EUPL-1.2find work, anywhere
67Emon-ProCoder7/sql-Command-Repository1110—Some of my sql projects with sqlite.
68vipul-shinde/marketing-analytics-cs1190MITDVD Rental Co Marketing Analytics Case Study - Serious SQL ✨
69simandebvu/SQL-Zoo1100MITMy Solution Set for the SQL Zoo Challenges and quizzes. Written in SQL.
70tschf/pl-gapi1051GPL-2.0
71RKNITH/MY-SQL-PRACTICE1000—
72iamAntimPal/LeetCode_SQL_Database1053—This repo contains my SQL solutions for LeetCode problems. Each file includes a problem description, optimized SQL query, and explanations.…
73wetory/sql-server-replication-monitoring10100—Simple solution for monitoring replication subscribers health state.
74ShenHongFei/dolphindb-vs-influxdb1000—DolphinDB vs InfluxDB 性能对比测试报告 (Performance Comparision Test Report)
75MHeydari/BCrypt-algorithm-in-Oracle-plsql1071—Implementation of BCrypt hashing in Oracle PLSQL
76AdityaBhatt3010/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…
77manaswikamila05/RSVP-Movies10100—SQL queries performed on IMDb database to provide recommendations to RSVP Movies based on insights.
78davidrabko/learning-sql910UnlicenseExercises and Examples from Learning SQL by Alan Beaulieu and LeetCode SQL 50
79Prakashdeveloper03/Leetcode-SQL900—This repository contains all my Leetcode problem solutions source code in SQL programming language.
80qanhnn12/SQL-Leetcode-Challenge-Solutions970MITSolutions for all free SQL questions on Leetcode executed on MySQL and MS SQL Server.
81theammarngp-makes/ecommerce-rfm-customer-segmentation910MITRFM (Recency, Frequency, Monetary) analysis using SQL to segment customers and identify high-value, loyal, and at-risk users in an e-commer…
82electronics4fun/PartDb-Altium-Connector921MITConnects PartDb with Altium using mySQL views
83cistoner/Lstore956—This tool allows you to anonymously or publicly share contents in LAN. Clients can download contents directly from you
84hacker9/Donor9920BSD-3-Clause
85j-b-ferguson/relational-database-design-and-test800—Designing and testing a relational database for The Happy Phone Company.
86AlysterF/8week-SQL-challenge820—8 case studies to apply SQL query solutions!
87artie93/When-Was-the-Golden-Age-of-Video-Games-800—
88gdsotirov/lemans24821GPL-2.0A small schema for statistics on 24 Hours of Le Mans endurance race.
89ndleah/dvd-rental-marketing-analytics840—🎥 Email marketing campaign analysis
90Oyebamiji-Micheal/SQL-Practice-Questions-and-Answers820MITThis repository contains practice questions and solutions and is solely dedicated to mastering SQL
91sondosaabed/TNB-MySQL800—The MySQL code queries for The National Bank of Palestine
92zikwall/clickhouse-docs810—🐾 ClickHouse Database + Apache Kafka + Zookeeper + Configure Cluster (Shards, Replicated)
93ndleah/bitcoin-prices-analysis830—💸 Bitcoin trading analysis
94SANKALP1011/LibraryDatabase800MITThis is an library database build using sql .
95synthesized-io/pagila-data-generation800BSD-3-ClauseA set of SQL scripts for random data generation for the Pagila database
96shukkkur/International-Debt-Statistics800UnlicenseSQL queries to answer interesting questions about international debt using data from The World Bank.
97FL-Marine/SQL_best_practices820—Personal SQL best practices README
98vincentclee/mh370_satellite_data_communication_logs850—Data from communications between Inmarsat satellites and the missing Boeing 777 Malaysia Airlines Flight MH370 (9M-MRO)
99echlebek/nutes721MITSQL import of USDA nutrient database
100al-ghaly/Airline-Company-Data-Warehouse760MITData 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

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.

Other languages