Learn with Abdou

Chapter 7 · Concept 1 of 6 · Practice

Join on a relationship, not a coincidence

INNER JOIN ON a key · level 2 of 6

Opening your saved work…

Sign in to save across devices → · Download your guest work before switching accounts.

Join on a relationship, not a coincidence · INNER JOIN ON a key · level 2 of 6

A result and its runner

Level 2: Fill the blank · Exercise 1 of 1

Grandma's Marathon keeps one row per registered runner and one row per finish. Each result points at its runner. Fill in the key that pairs them.

Finish line: 5 rows · columns result_id, runner_id, city · in the order the question gives

Data: Grandma’s Marathon.

Fill the blankOpening the database…
SELECT s.id AS result_id, s.runner_id, r.city FROM results s JOIN runners r ON r.id = ORDER BY s.id LIMIT 5;
  1. Blank 1 of 1: the column in results that points at a runner
Open in the playground

Query results

Check to see the result here.

Check to see the result here.

Practice here is evidence for you and your instructor, never a grade. Grades live in Canvas.