Learn with Abdou

Chapter 10 · Concept 3 of 5 · Practice

The orphan hunt loses the orphan

LEFT JOIN from staging to the parent, exclusion as a decision · level 3 of 6

Opening your saved work…

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

The orphan hunt loses the orphan · LEFT JOIN from staging to the parent, exclusion as a decision · level 3 of 6

How many rows does the INNER JOIN keep?

Level 3: Predict the result · Exercise 1 of 1

Six rows are staged, and one names gear type 99. Before you run it: how many rows does this INNER JOIN return?

SELECT COUNT(*) AS paired_rows
FROM stg_items s
JOIN gear_types g ON g.id = CAST(s.type_id AS INTEGER);
The query. Predict before you run it.

Data: Trail Gear: build rehearsal.

Opens once your prediction is right, or after the worked answer.

Query results

The real result appears here after you run it.

The real result appears here after you run it.

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