SQL Blog

Articles that compare things or give advice: how GROUP BY and HAVING differ, how to make slow queries faster, and a free study plan. Topics that are taught step by step live in the lessons instead.

Looking for a longer guide?

The guides to JOINs, subqueries, CTEs, window functions and interview questions that used to be blog posts were merged into the lessons, where every example runs on the practice database. Their old addresses redirect there.

PerformanceAdvanced SQLIndexing2026

30 SQL Performance Tips Every Developer Should Know in 2026

The complete guide to SQL query optimization. Master indexing strategies, EXPLAIN plans, pagination, N+1 patterns, JOINs, partitioning, and database-specific tuning for PostgreSQL, MySQL, and SQL Server.

2026-05-13ยท22 min read

All Articles

GROUP BY vs HAVING: What's the Difference?

Confused by GROUP BY vs HAVING? This guide explains the difference between GROUP BY and HAVING in SQL โ€” with a comparison table, execution order, real-world examples, common mistakes, and FAQs.

10 min read
โ†’

Learn SQL for Free in 2026 โ€” Complete Beginner's Roadmap

The complete 2026 guide to learning SQL from zero to job-ready. Free resources, a 30-day plan, salary data, career paths, code examples, and a free interactive SQL playground to practice real queries.

18 min read
โ†’

Practise what you just read

Every topic in these articles has a lesson with runnable examples and challenges with an expected result.

Browse the lessonsTry a challenge