← All Courses
Learn SQL & Databases logo

Learn SQL & Databases

Coming Soon

Query, design, and optimize relational databases

SQL PostgreSQL MySQL Database Design Queries

Coming Soon

The language of data. SQL powers every relational database from PostgreSQL to MySQL to SQLite. Learn to write queries, design schemas, optimize performance, and manage data at scale.

This course covers SQL fundamentals through advanced query optimization, database design patterns, and production PostgreSQL administration.

Start Here — Learning Roadmap

A suggested path from zero to mastery. Follow these steps in order:

  1. Learn basic SELECT queries — Understand how to retrieve data from tables using SELECT, WHERE, ORDER BY, and LIMIT clauses
  2. Master filtering and aggregation — Use GROUP BY, HAVING, COUNT, SUM, AVG, and other aggregate functions to summarize data
  3. Understand JOINs — Connect multiple tables with INNER JOIN, LEFT JOIN, RIGHT JOIN, and CROSS JOIN to answer complex questions
  4. Write subqueries and CTEs — Break complex problems into readable parts using Common Table Expressions and nested queries
  5. Design schemas and normalize data — Learn 1NF through 3NF normalization, primary/foreign keys, and entity-relationship modeling
  6. Create and modify tables — Use DDL statements (CREATE, ALTER, DROP) and understand data types, constraints, and defaults
  7. Work with indexes and query plans — Read EXPLAIN output, create indexes strategically, and understand how the optimizer works
  8. Learn window functions — Use ROW_NUMBER, RANK, LAG, LEAD, and partition-based aggregates for analytics queries
  9. Administer a production database — Manage users, permissions, backups, replication, and monitoring in PostgreSQL
  10. Optimize at scale — Understand partitioning, materialized views, connection pooling, and performance tuning for large datasets

Official & Core Documentation

  • PostgreSQL Documentation — Comprehensive PostgreSQL reference with tutorials, user guides, and internals documentation (All levels)
  • MySQL Reference Manual — Official MySQL documentation covering all versions and SQL syntax (All levels)
  • SQLite Documentation — Lightweight embedded database docs and SQL syntax reference (Beginner)
  • MariaDB Knowledge Base — Community-driven documentation for the popular MySQL fork (Intermediate)
  • W3Schools SQL Tutorial — Quick reference with a “Try it Yourself” editor for every concept (Beginner)
  • SQL Style Guide — Consistent formatting conventions for readable, maintainable SQL (All levels)
  • Mode SQL Tutorial — Structured SQL tutorial from basics through advanced analytics queries (Beginner)
  • DevOps Roadmap — SQL — Visual step-by-step guide to learning SQL concepts in order (Beginner)
  • PostgreSQL Wiki — Community-maintained tips, performance guides, and best practices (Intermediate)

GitHub Awesome Lists & Curated Collections

  • awesome-sql — Tools and techniques for working with relational databases, including formatters, IDEs, and migration tools
  • awesome-postgres — Curated list of PostgreSQL software, libraries, tools, and resources (9k+ stars)
  • awesome-db-tools — Everything that makes working with databases easier, from GUI clients to schema diffing tools
  • awesome-sql (mbiesiad) — Tutorials, docs, formatters, online education, tools, and more for SQL learners
  • awesome-database — Broad collection of database libraries, resources, and tools across all database types

Interactive Courses & Hands-On Platforms

Free Courses

  • SQLBolt — Interactive SQL lessons with live exercises, excellent for absolute beginners (Beginner)
  • Select Star SQL — Interactive SQL book using real Texas death row data to teach query concepts (Beginner)
  • SQLZoo — Interactive tutorials and quizzes covering joins, subqueries, and aggregates (Beginner)
  • PostgreSQL Exercises — Practice PostgreSQL queries on a realistic club management dataset (Intermediate)
  • SQL Easy — Clean, beginner-friendly interactive SQL tutorial with immediate feedback (Beginner)
  • Khan Academy — Intro to SQL — Video tutorials paired with interactive coding challenges (Beginner)
  • Kaggle SQL Micro-Course — Free hands-on SQL with BigQuery on real datasets (Beginner)

University & MOOC Courses

Practice & Challenges

  • HackerRank SQL — SQL challenges from beginner to advanced with instant feedback (All levels)
  • LeetCode Database Problems — SQL interview-style problems used by top tech companies (Intermediate)
  • Exercism SQL Track — Mentored SQL exercises with community code review (Intermediate)
  • DataLemur SQL Questions — Real SQL interview questions from FAANG companies (Intermediate)
  • StrataScratch — SQL and Python interview questions sourced from real company interviews (Intermediate)

Video Courses & YouTube Channels

Structured Course Playlists

Individual Creators & Channels

Books & Long-Form Reading

Free Online Books

Essential Paid Books

Community, Practice & News

Forums & Discussion

Newsletters & Blogs

  • PostgreSQL Weekly — Weekly roundup of PostgreSQL news, articles, and tools
  • DB Weekly — Weekly newsletter covering database technology news across all engines
  • Planet PostgreSQL — Aggregated blog posts from PostgreSQL community members

Ecosystem Resources

Tools & Environments

  • DB Fiddle — Online SQL playground for testing and sharing database problems with MySQL, PostgreSQL, and SQLite support
  • SQL Fiddle — Free, ad-free online SQL playground with multiple database engines
  • SQLize Online — Run queries on MySQL, PostgreSQL, SQLite, MariaDB, and SQL Server in the browser
  • RunSQL — Modern SQL playground with visual schema builder, query editor, and sharing capabilities
  • PostgreSQL Playground (Aiven) — Free online PostgreSQL sandbox for testing queries without local setup
  • DBeaver — Free multi-platform database tool supporting all major databases with visual query builder
  • pgAdmin — Official PostgreSQL administration and development platform
  • TablePlus — Modern, native database GUI for PostgreSQL, MySQL, SQLite, and more (free tier available)
  • Beekeeper Studio — Open-source SQL editor and database manager with a clean, modern interface
  • DataGrip — JetBrains IDE for databases with intelligent query console and schema navigation (Paid, free for students)

Cheat Sheets & Quick References

Certification Paths