← All series & guides

Series

SQL series

13 parts

Step-by-step SQL — from playground setup through joins, subqueries, and optimization.

Start with part 1 →

  1. 1 SQL Tutorial 1: Setting Up Your SQL Playground Ready to embark on your SQL journey? This tutorial guides you through setting up your SQL environment and creating a practice database using SQLite. You'll learn how to install SQLite, create a database, and use essential SQL tools to enhance your learning experience. With this foundation, you'll be well-equipped to dive into SQL and start building your skills.
  2. 2 SQL Tutorial 2: Master the Core Commands of SQL – SELECT, INSERT, UPDATE, DELETE Dive into the core commands of SQL with this essential tutorial. Learn how to use SELECT to retrieve data, INSERT to add new records, UPDATE to modify existing data, and DELETE to remove records. These commands are fundamental for interacting with and manipulating data in your SQL databases. Enhance your SQL skills and master these foundational commands to become proficient in data management.
  3. 3 SQL Tutorial 3: Retrieving Data with SELECT Learn how to effectively retrieve data from databases using the SQL SELECT statement in this comprehensive tutorial. You'll explore essential components like WHERE clauses for filtering, ORDER BY for sorting, LIMIT to restrict row numbers, and DISTINCT to remove duplicates. Mastering these techniques will enhance your SQL querying skills.
  4. 4 SQL Tutorial 4: Filtering and Sorting Data in SQL Ready to take your SQL skills to the next level? Filtering and sorting data is essential for extracting precise information from your databases, and in our latest tutorial, we'll show you how to do just that. Using comparison operators and logical operators like AND, OR, and NOT, you'll learn how to refine your queries and create more complex filtering criteria. We'll also delve into the ORDER BY clause for sorting your results and handling NULL values effectively. With these techniques under your belt, you'll be able to write precise and efficient SQL queries, unlocking valuable insights from your data. Don't miss out – read on to master the art of filtering and sorting data in SQL!
  5. 5 SQL Tutorial 5: Aggregate Functions and Grouping Data in SQL Learn how aggregate functions and GROUP BY turn rows into summaries. This tutorial covers COUNT, SUM, AVG, MIN, and MAX, then shows how to group and filter aggregates so you can answer business questions with SQL.
  6. 6 SQL Tutorial 6: Joins in SQL Connect related tables with SQL joins. You will learn INNER, LEFT, RIGHT, and FULL joins, how matching keys work, and when to use each type so you can build richer datasets from multiple tables.
  7. 7 SQL Tutorial 7: Subqueries in SQL Nest queries inside queries with subqueries. This lesson explains scalar, multi-row, and correlated subqueries and how to use them in WHERE, FROM, and SELECT to filter and shape results more precisely.
  8. 8 SQL Tutorial 8: Modifying Data with SQL Change data safely with INSERT, UPDATE, and DELETE. Practice adding rows, editing existing records, and removing data while keeping integrity in mind — essential skills for day-to-day database work.
  9. 9 SQL Tutorial 9: Views and Indexes Simplify complex queries with views and speed them up with indexes. This tutorial shows how to create and use views as virtual tables, and how indexes help the database find rows faster.
  10. 10 SQL Tutorial 10: Advanced SQL Techniques Level up beyond basic SELECT with advanced techniques: common table expressions (CTEs), window functions, recursive queries, and pivot-style patterns that make hard analyses more readable and powerful.
  11. 11 SQL Tutorial 11: Stored Procedures, Triggers, and User-Defined Functions Automate logic in the database with stored procedures, triggers, and user-defined functions. Learn when each tool fits, how to create them, and how they keep reusable SQL and business rules in one place.
  12. 12 SQL Tutorial 12: Best Practices and Optimization Write faster, cleaner SQL with practical optimization habits. This guide covers query tuning basics, indexing strategy, and common performance pitfalls so your databases stay responsive as they grow.
  13. 13 SQL Tutorial 13: Strategies for Maintenance and Optimization Keep databases healthy over time with maintenance strategies: backups and restores, user permissions, and routine upkeep. Build a reliable playbook for integrity, security, and long-term performance.