TechnologyThe BestieBeginner
Querying Databases with SQL, a free technology course on Tomo

Querying Databases with SQL

Learn to ask questions of relational databases and extract the exact answers you need. Master data filtering, multi-table joins, aggregation, and conditional logic with clear, practical SQL queries.

Like Duolingo, but for Querying Databases with SQL. Tomo turns the whole topic into a game you play five minutes a day, until it actually sticks.

27 levels across 4 sections, about 54 minutes end to end, roughly 11 days at five minutes a day. It moves through Retrieving and Filtering Data, Summarizing and Segmenting Numbers, Connecting Tables Across Relationships, and Writing Robust and Multi-Step Queries. It starts from scratch.

27 bite-size levelsAbout 5 minutes each

Free forever · No credit card · iPhone & Android

Sammy the Squirrel, the guide who teaches the Querying Databases with SQL course
Querying Databases with SQL
with Sammy the Squirrel
27
Levels
4
Sections
5
Min/day
What you'll learn

Key ideas in Querying Databases with SQL

  • In a relational database, each horizontal row represents one complete individual record
  • Each vertical column represents a specific attribute or property shared by those records
  • A named table organizes rows and columns belonging to the same entity type
  • SQL is a declarative language, meaning you state what data you want rather than how to get it
  • The database engine decides under the hood how to search, loop, or fetch records efficiently without manual loops
  • A basic SQL query begins with SELECT followed by the specific columns you want to view
  • The FROM clause specifies the table that holds those columns
  • SQL clauses follow a strict grammatical order where SELECT comes before FROM
  • ORDER BY sorts output in ascending (ASC, default) or descending (DESC) order
  • ORDER BY affects only the presentation of the query results; it never permanently rearranges stored data in the database
  • Tables have no guaranteed natural order unless an explicit ORDER BY clause is used in the query
  • The LIMIT clause caps the maximum number of rows returned by a query
  • Using LIMIT lets you quickly inspect column names and sample data without loading millions of rows into memory
  • A WHERE clause acts like a gatekeeper that tests every row independently against a condition
  • If a row's condition turns out false (or unknown due to missing data), SQL leaves that row out of the results
  • SQL uses standard comparison symbols like =, !=, <, and >= for filtering
Why not just Google it

You've tried the other tabs

Wikipedia

Thirty open tabs. Four facts you actually kept.

YouTube

You watched. You nodded. By Sunday it was gone.

ChatGPT

One answer, then back to scrolling.

Online courses

Eight weeks. You meant to finish. You didn't.

Tomo gives Querying Databases with SQL the Duolingo treatment: levels, streaks, and quick quizzes that test what you just learned. That game loop is what the tabs above never had, so it's the one you actually finish.

Try a question

Here's what playing it feels like

A real question from this course. Take your best guess.

How Databases Hold Your Data

If you look straight down a vertical column in a database table, what are you looking at?

Get it right to open this lesson and 26 more in the app.

Course map

Where Querying Databases with SQL takes you

  1. 1

    Retrieving and Filtering Data

    • Extracting and Sorting What You Need
    • Filtering Rows by Precise Conditions
  2. 2

    Summarizing and Segmenting Numbers

    • Aggregating Data into Summaries
    • Segmenting Totals with Groups
  3. 3

    Connecting Tables Across Relationships

    • Linking Tables Through Shared Keys
    • Preserving Missing Matches with Outer Joins
  4. 4

    Writing Robust and Multi-Step Queries

    • Handling Missing Values and Custom Logic
    • Composing Queries with Subqueries and CTEs

4 sections · 8 units · 27 levels. Built to play, not to enroll.

New

Tomo is in ChatGPT

Tomo is also a ChatGPT plugin: the same playable courses, built and played inside your chat.

Add Tomo to ChatGPT
How it's taught

You pick the voice

This course
The Bestie

Querying Databases with SQL is taught in the Bestie style: your friend who just gets it. Want a different feel? In the app you can spin up the same topic in any of Tomo's teaching styles. Same facts, totally different vibe.

Keep going

More Technology on Tomo

Talking to Databases with SQL course icon

Talking to Databases with SQL

Professor

Learn how to store, find, and organize information using SQL. This course takes you from your very first query to joining complex tables like a pro.

54 levels1h 48mBeginner
Everyday Excel course icon

Everyday Excel

Bestie

Transform blank grids and messy exports into organized, automated sheets. Learn how to write living formulas, pin references, summarize ranges, and filter tables with confidence.

12 levels24mBeginner
Data Analysis from Excel to SQL course icon

Data Analysis from Excel to SQL

Bestie

Transform messy raw spreadsheets into automated models, interactive dashboards, and robust database queries. Learn to clean data in Power Query, calculate metrics in DAX, and extract answers with SQL.

25 levels50mBeginner
Excel for Everyday Work course icon

Excel for Everyday Work

Bestie

Build confidence in Excel by learning how spreadsheets actually think and operate. From basic data entry and rock-solid formulas to lookups and pivot tables, you'll gain the practical skills needed to organize, calculate, and present data with clarity.

25 levels50mBeginner
Working with Excel course icon

Working with Excel

Explain Like I'm 5

Learn how to turn a blank grid of cells into an automated calculation engine. Master formulas, essential functions, and data-organizing tools to analyze numbers in minutes.

11 levels22mBeginner
Working with Excel course icon

Working with Excel

Explain Like I'm 5

Learn how to turn empty spreadsheets into reliable tools for organizing, calculating, and presenting information. This course covers everything from essential formulas and clean formatting to automated lookups and dynamic PivotTables. Build the practical competence to manage everyday data with clarity and speed.

25 levels50mBeginner
Start free

Start Querying Databases with SQL today.

Download Tomo, search Querying Databases with SQL, and play your first lesson in under a minute.