A definitively curated, massive list of the best SQL resources, tools, documentation, and learning platforms on the internet. Whether you are a beginner writing your first SELECT statement, a DBA optimizing complex queries, or an engineer preparing for interviews, everything you need is right here.
- Interactive Learning & Courses
- Official Documentation
- SQL Playgrounds & Fiddles
- Web-Based Utilities & Formatters
- Desktop GUI Clients & IDEs
- Database Design & ERD Tools
- Interview Preparation
- Performance & Optimization
- Cheat Sheets & References
- Open Source Sample Databases
Master SQL from scratch with these interactive platforms and comprehensive tutorials.
- SQLBolt - Learn SQL with simple, interactive exercises right in your browser.
- Select Star SQL - An interactive book which aims to be the best place on the internet for learning SQL.
- SQLZoo - A well-established interactive SQL tutorial with quizzes.
- Mode SQL Tutorial - Excellent tutorials ranging from Basic to Advanced and Analytical SQL.
- Codecademy: Learn SQL - Interactive guided course for beginners.
- W3Schools SQL Tutorial - The classic, easy-to-reference tutorial with a "Try it Yourself" editor.
- Khan Academy: Intro to SQL - Free video lectures and interactive challenges.
- PostgreSQL Tutorial - Comprehensive guide specifically for PostgreSQL.
- MySQL Tutorial - Step-by-step tutorials for MySQL developers.
- SQLCourse - Unique interactive SQL training.
- GalaXQL - An interactive SQL tutorial journey through a virtual galaxy.
- Mystery SQL - Learn SQL by solving a murder mystery in terminal City.
Always go straight to the source. The official manuals for the most popular relational database systems.
- PostgreSQL Official Docs - The world's most advanced open-source database.
- MySQL Reference Manual - The world's most popular open-source database.
- Microsoft SQL Server (T-SQL) Docs - Transact-SQL reference for MS Server.
- SQLite Documentation - C-language library that implements a small, fast, self-contained SQL database engine.
- Oracle Database SQL Reference - Comprehensive guide for Oracle environments.
- MariaDB Knowledge Base - Documentation for the popular MySQL fork.
- Amazon Aurora Docs - MySQL and PostgreSQL-compatible relational database built for the cloud.
Test queries, share schema, and debug database issues without installing anything locally.
- DB Fiddle - Supports MySQL, PostgreSQL, and SQLite with multiple versions.
- SQL Fiddle - A tool for easy online testing and sharing of database problems.
- OneCompiler SQL - Write, run, and share SQL code online.
- JDoodle SQL Execute - Quick and simple online SQL compiler.
- Rextester - Online compiler for SQL Server, MySQL, and PostgreSQL.
- SQLiteOnline - Fast and free online SQLite/MariaDB/PostgreSQL IDE.
Browser-based tools to format, minify, generate, and convert SQL data instantly.
- SQL Utilities - A comprehensive, all-in-one suite featuring SQL formatters, minifiers, JSON/CSV converters, and code generators. Highly recommended for daily workflow.
- SQLFormat.org - Free online formatter supporting multiple SQL dialects.
- ExtendsClass SQL Formatter - Beautify and format SQL statements online.
- CodeBeautify SQL Formatter - Format, validate, and minify your SQL queries.
- Poor SQL - Instant online T-SQL formatting.
Manage your databases efficiently with these powerful desktop applications.
- DBeaver - Free universal database tool for developers and DBAs (Supports all major DBs).
- DataGrip - JetBrains' powerful database IDE (Paid/Student Free).
- TablePlus - Modern, native, and friendly GUI tool for relational databases (Mac/Windows).
- HeidiSQL - Lightweight, free tool for MySQL, MariaDB, PostgreSQL, and MS SQL (Windows).
- pgAdmin - The most popular and feature-rich Open Source administration platform for PostgreSQL.
- MySQL Workbench - Unified visual tool for database architects, developers, and DBAs.
- SQL Server Management Studio (SSMS) - Microsoft's official environment for SQL Server.
- Sequel Ace - The "macOS-native" database client for working with MySQL/MariaDB.
- Beekeeper Studio - Open Source SQL editor and database manager with a clean UI.
- Postico - A modern PostgreSQL client for the Mac.
- SQuirreL SQL - Graphical Java program to view the structure of a JDBC compliant database.
Plan, visualize, and generate your database schema with Entity-Relationship Diagram tools.
- dbdiagram.io - Draw entity-relationship diagrams by writing simple code.
- DrawSQL - Beautiful database diagramming tool for developer teams.
- QuickDBD - Quickly draw database diagrams by typing.
- SqlDBM - Online database design tool and entity-relationship modeling.
- ERDPlus - Web-based database modeling tool for creating ERDs and Relational Schemas.
- Lucidchart ERD Tool - Enterprise-grade diagramming application.
Practice SQL problems specifically tailored for data science and software engineering interviews.
- LeetCode Database - Hundreds of SQL interview questions asked by top tech companies.
- HackerRank SQL - Progressive SQL challenges to earn badges and prepare for assessments.
- StrataScratch - Practice real SQL interview questions from top companies like Google, Meta, and Amazon.
- DataLemur - Excellent platform for practicing advanced SQL interview questions.
- InterviewBit SQL - Curated list of typical SQL interview questions and answers.
Tools and guides to make your slow queries run lightning fast.
- Use The Index, Luke! - A must-read guide to database performance for developers.
- EverSQL - AI-powered SQL query optimization.
- PostgreSQL EXPLAIN Visualizer (PEV) - Make Postgres query plans readable.
- PgHero - A performance dashboard for Postgres.
- MySQL EXPLAIN Format - Understanding how MySQL executes queries.
Quick lookups for syntax and functions when you're deep in the code.
- DataCamp SQL Cheat Sheet - Highly visual and printable guide to basics.
- sqltutorial.org Cheat Sheet - Comprehensive 3-page PDF reference.
- PostgreSQL Cheat Sheet - Interactive cheat sheet for Postgres specific commands.
- Zero To Mastery SQL Cheat Sheet - Beautifully designed modern reference.
Practice your skills on real-world datasets.
- Chinook Database - A great alternative to the Northwind database, available for multiple engines.
- MySQL Sakila Database - The standard sample database for MySQL.
- PostgreSQL Pagila - A port of the Sakila database to PostgreSQL.
- Stack Overflow Data Dump - The massive, real-world anonymized dump of Stack Overflow.
Found an amazing SQL resource that isn't listed here? Please send a Pull Request!
- Fork this repository.
- Add your link in the most relevant category.
- Keep the format consistent:
* [Tool Name](link) - Brief description. - Submit your PR!
This curated list is dedicated to the public domain.
