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 4 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 4 of 6

Which staged rows have no parent?

Level 4: Write it yourself · Exercise 1 of 1

Return serial and type_id for the staged rows whose gear type has no row in gear_types, in file order. Every type_id in this file is whole-number text, so it is safe to convert.

Finish line: 1 row · columns serial, type_id · in the order the question gives

Data: Trail Gear: build rehearsal.

Opening the database…
Table & column names only · ↑ ↓ choose · Tab insert · Esc dismiss

CURRENT DATABASE

Quick schema · Trail Gear: build rehearsal

Press Esc or click outside to return to your query. PK = primary key · FK = declared foreign key.

This database has no tables yet. Create a table, then reopen the schema to see its columns.

Control Space also opens names. Enter adds a new line. Control or Command Enter runs your query.
Open in the playground

Query results

Run your query to see the result here.

Run your query to see the result here.

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